> My lightweight-semaphores were actually even simpler in userspace: > * the userspace struct was just a signed count and a file handle. > * Uncontended case is exactly like Linus' version (i.e., down() is decl + > js, up() is incl()). > * The contention syscall was (in my implementation) an ioctl on the FH; the > FH was a special one, from a private syscall (although with the new VFS I'd > have written it as just another specialized FS, or even referred into the > SysVsem FS). Which raises an even more interesting question. Suppose your semaphore function wanst a magic file system but was flock on a standard file ? The contention overhead is rather less nice than Linus proposal but it ought 8) to work without any kernel patches - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: light weight user level semaphores Ulrich Drepper
- Re: light weight user level semaphores Alon Ziv
- Re: light weight user level semaphores Abramo Bagnara
- Re: light weight user level semaphores Alexander Viro
- Re: light weight user level semaphores Abramo Bagnara
- Re: light weight user level semaphores Linus Torvalds
- Re: light weight user level semaphores Abramo Bagnara
- Re: light weight user level semaphores Ingo Oeser
- Re: light weight user level semaphore... Linus Torvalds
- Re: light weight user level semaphores Ingo Oeser
- Re: light weight user level semaphores Alan Cox
- Re: light weight user level semaphores Linus Torvalds
- Re: light weight user level semaphores Olaf Titz
- Re: light weight user level semaphores George Talbot
- Re: light weight user level semaphores Linus Torvalds
- Re: light weight user level semaphores Alan Cox
- Re: light weight user level semaphores Rogier Wolff
- Re: light weight user level semaphores Olaf Titz
- Re: light weight user level semaphores Jesse Pollard
- Re: light weight user level semaphores Olaf Titz
- Re: light weight user level semaphores Linus Torvalds