Futex manpages out of date
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PI
These new wait op codes now use absolute timeouts, while the original FUTEX_WAIT uses a relative timeout. Lastly, and most importantly, glibc has removed the futex() wrapper to syscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?
Thanks,
Signature · 7 lines
Darren Hart IBM Linux Technology Center Real-Time Linux Team -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 4B509EA1.8060509-r/[email protected]
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PI
Quoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?
A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Readable code is much better than rambling English at conveying this stuff.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 19 lines · Peter Zijlstra
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PIQuoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?
Quoted 7 lines
A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Readable code is much better than rambling English at conveying this stuff.
Perhaps as part of futex-test? An example set of locking primitives would be a good way to test the syscall independently of glibc...
Signature · 7 lines
Darren Hart IBM Linux Technology Center Real-Time Linux Team -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 4B50A228.8070401-r/[email protected]
Quoted 25 lines · Darren Hart
Quoted 24 lines · Peter Zijlstra
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PIQuoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Quoted 5 lines
Quoted 2 lines
Readable code is much better than rambling English at conveying this stuff.
Perhaps as part of futex-test? An example set of locking primitives would be a good way to test the syscall independently of glibc...
Sure, and if that ever grows into what benh wants then we're good I think ;-)
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 19 lines · Peter Zijlstra
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PIQuoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?
Quoted 7 lines
A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Readable code is much better than rambling English at conveying this stuff.
http://people.redhat.com/drepper/futex.pdf is pretty good description, unfortunately also outdated by now. Perhaps it would be interesting to convert this into some kind of wiki form with Ulrich's permission?
Petr "Pasky" Baudis
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 24 lines · Petr Baudis
Quoted 23 lines · Peter Zijlstra
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PIQuoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Quoted 6 lines
Quoted 2 lines
Readable code is much better than rambling English at conveying this stuff.
http://people.redhat.com/drepper/futex.pdf is pretty good description, unfortunately also outdated by now. Perhaps it would be interesting to convert this into some kind of wiki form with Ulrich's permission?
Does anyone know what is being done documentation-wise with other syscalls? I believe glibc has removed other wrappers as well. In my opinion the best place for this is in the linux kernel Documentation directory. I have already documented requeue_pi there. Ulrich's paper would server as an excellent starting point for a sysfutex.txt or futex_usage.txt file.
Ulrich, do you have a preference or any requirements on how your work is used?
Signature · 7 lines
Darren Hart IBM Linux Technology Center Real-Time Linux Team -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 25 lines · Petr Baudis
Quoted 24 lines · Peter Zijlstra
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PIQuoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Quoted 6 lines
Quoted 2 lines
Readable code is much better than rambling English at conveying this stuff.
http://people.redhat.com/drepper/futex.pdf is pretty good description, unfortunately also outdated by now. Perhaps it would be interesting to convert this into some kind of wiki form with Ulrich's permission?
People keep saying that, but I found it highly unreadable.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 25 lines · Peter Zijlstra
Quoted 24 lines · Petr Baudis
Quoted 23 lines · Peter Zijlstra
Quoted 12 lines · Darren Hart
The futex man-pages (2,7) from version 3.15-1 and at least a few earlier versions are considerably out of date with respect to the current implementation. They don't document newer op codes, such as:
FUTEX_WAIT_BITSETFUTEX_WAKE_BITSETFUTEX_WAKE_OPFUTEX_LOCK_PIFUTEX_UNLOCK_PIFUTEX_WAIT_REQUEUE_PIFUTEX_CMP_REQUEUE_PIQuoted 5 lines
These new wait op codes now use absolute timeouts, while the original
FUTEX_WAITuses a relative timeout. Lastly, and most importantly, glibc has removed thefutex()wrapper tosyscall(SYS_futex, ...). With that in mind, would people prefer that we simply remove the futex man-pages (2,7)?A readable text about the interaction between the futex value and the various futex ops and how to build proper locking primitives with them would be helpful I think, however doing that in the form of a locking library (as has been suggested at KS) seems plenty fine to me.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Readable code is much better than rambling English at conveying this stuff.
http://people.redhat.com/drepper/futex.pdf is pretty good description, unfortunately also outdated by now. Perhaps it would be interesting to convert this into some kind of wiki form with Ulrich's permission?
People keep saying that, but I found it highly unreadable.
Interesting. I found it to be a good introduction into the usage of futexes as well as cautionary of the many non-obvious race conditions possible with locking structures built on futexes.
Signature · 7 lines
Darren Hart IBM Linux Technology Center Real-Time Linux Team -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html