mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 15:32:04 +02:00
docs: futex2: fix documented errno names for futex_waitv
The documentation cited -EAGAIN and -ETIMEOUT, but futex_waitv() returns -EWOULDBLOCK on value mismatch and -ETIMEDOUT when the timeout expires, per kernel/futex/waitwake.c. Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260831143125.151360-2-ivanrwcm25@gmail.com>
This commit is contained in:
parent
5c11629e62
commit
baab8aa73d
|
|
@ -51,10 +51,10 @@ future extension.
|
|||
|
||||
For each entry in ``waiters`` array, the current value at ``uaddr`` is compared
|
||||
to ``val``. If it's different, the syscall undo all the work done so far and
|
||||
return ``-EAGAIN``. If all tests and verifications succeeds, syscall waits until
|
||||
return ``-EWOULDBLOCK``. If all tests and verifications succeeds, syscall waits until
|
||||
one of the following happens:
|
||||
|
||||
- The timeout expires, returning ``-ETIMEOUT``.
|
||||
- The timeout expires, returning ``-ETIMEDOUT``.
|
||||
- A signal was sent to the sleeping task, returning ``-ERESTARTSYS``.
|
||||
- Some futex at the list was woken, returning the index of some waked futex.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user