FUTEX_LOCK_PI_ATOMIC(9) | Futex API reference | FUTEX_LOCK_PI_ATOMIC(9) |
NAME¶
futex_lock_pi_atomic - Atomic work required to acquire a pi aware futex
SYNOPSIS¶
int futex_lock_pi_atomic(u32 __user * uaddr, struct futex_hash_bucket * hb, union futex_key * key, struct futex_pi_state ** ps, struct task_struct * task, int set_waiters);
ARGUMENTS¶
u32 __user * uaddr
struct futex_hash_bucket * hb
union futex_key * key
struct futex_pi_state ** ps
struct task_struct * task
int set_waiters
RETURN¶
0 - ready to wait; 1 - acquired the lock; <0 - error
The hb->lock and futex_key refs shall be held by the caller.
AUTHOR¶
Rusty Russell <rusty@rustcorp.com.au>
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |