FUTEX_REQUEUE(9) | Futex API reference | FUTEX_REQUEUE(9) |
NAME¶
futex_requeue - Requeue waiters from uaddr1 to uaddr2
SYNOPSIS¶
int futex_requeue(u32 __user * uaddr1, unsigned int flags, u32 __user * uaddr2, int nr_wake, int nr_requeue, u32 * cmpval, int requeue_pi);
ARGUMENTS¶
u32 __user * uaddr1
unsigned int flags
u32 __user * uaddr2
int nr_wake
int nr_requeue
u32 * cmpval
int requeue_pi
DESCRIPTION¶
Requeue waiters on uaddr1 to uaddr2. In the requeue_pi case, try to acquire uaddr2 atomically on behalf of the top waiter.
RETURN¶
>=0 - on success, the number of tasks requeued or woken; <0 - on error
AUTHOR¶
Rusty Russell <rusty@rustcorp.com.au>
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |