Skip to contentSkip to conversation

Bug man page futex(2) FUTEX_CMP_REQUEUE

DISCUSSION Carlo Wood 1 participant 1 message Sep 27, 2019 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Carlo Wood

author
#0 lore raw

Man page http://man7.org/linux/man-pages/man2/futex.2.html
states for FUTEX_CMP_REQUEUE

Typical values to specify for val are 0 or 1.

How is a value of 0 useful?

(Specifying
INT_MAX is not useful, because it would make the FUTEX_CMP_REQUEUE operation equivalent to FUTEX_WAKE.)

This is incorrect because FUTEX_WAKE doesn't have the expected (val3) parameter.

Same for the remark that follows this statement after "The
limit value specified via val2 is typically either 1 or INT_MAX.":

(Specifying the argument as 0 is not useful, because it would make the FUTEX_CMP_REQUEUE operation equivalent to FUTEX_WAIT.)

Signature · 1 line
Carlo Wood <[email protected]>