Lines Matching refs:uaddr

50  * @uaddr:	address of first futex
52 * @val: typically expected value of uaddr, but varies by op
68 static inline int futex_syscall(enum futex_fn_type fntype, futex_t *uaddr,
72 int (*func)(int *uaddr, int futex_op, int val, void *to, int *uaddr2, int val3);
79 return func((int *)uaddr, futex_op | opflags, val, timeout, (int *)uaddr2, val3);
83 * futex_wait() - block on uaddr with optional timeout
87 futex_wait(enum futex_fn_type fntype, futex_t *uaddr, futex_t val,
90 return futex_syscall(fntype, uaddr, FUTEX_WAIT, val,
95 * futex_wake() - wake one or more tasks blocked on uaddr
99 futex_wake(enum futex_fn_type fntype, futex_t *uaddr, int nr_wake, int opflags)
101 return futex_syscall(fntype, uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0,
106 * futex_wait_bitset() - block on uaddr with bitset
110 futex_wait_bitset(enum futex_fn_type fntype, futex_t *uaddr, futex_t val,
113 return futex_syscall(fntype, uaddr, FUTEX_WAIT_BITSET, val,
118 * futex_wake_bitset() - wake one or more tasks blocked on uaddr with bitset
122 futex_wake_bitset(enum futex_fn_type fntype, futex_t *uaddr, int nr_wake,
125 return futex_syscall(fntype, uaddr, FUTEX_WAKE_BITSET, nr_wake, NULL,
130 * futex_lock_pi() - block on uaddr as a PI mutex
134 futex_lock_pi(enum futex_fn_type fntype, futex_t *uaddr, struct tst_ts *timeout,
137 return futex_syscall(fntype, uaddr, FUTEX_LOCK_PI, detect,
142 * futex_unlock_pi() - release uaddr as a PI mutex, waking the top waiter
145 futex_unlock_pi(enum futex_fn_type fntype, futex_t *uaddr, int opflags)
147 return futex_syscall(fntype, uaddr, FUTEX_UNLOCK_PI, 0, NULL, NULL, 0,
154 futex_wake_op(enum futex_fn_type fntype, futex_t *uaddr, futex_t *uaddr2,
157 return futex_syscall(fntype, uaddr, FUTEX_WAKE_OP, nr_wake,
171 futex_requeue(enum futex_fn_type fntype, futex_t *uaddr, futex_t *uaddr2,
174 return futex_syscall(fntype, uaddr, FUTEX_REQUEUE, nr_wake,
180 * futex_cmp_requeue() - requeue tasks from uaddr to uaddr2
185 futex_cmp_requeue(enum futex_fn_type fntype, futex_t *uaddr, futex_t val,
188 return futex_syscall(fntype, uaddr, FUTEX_CMP_REQUEUE, nr_wake,
194 * futex_wait_requeue_pi() - block on uaddr and prepare to requeue to uaddr2
195 * @uaddr: non-PI futex source
202 futex_wait_requeue_pi(enum futex_fn_type fntype, futex_t *uaddr, futex_t val,
205 return futex_syscall(fntype, uaddr, FUTEX_WAIT_REQUEUE_PI, val,
210 * futex_cmp_requeue_pi() - requeue tasks from uaddr to uaddr2 (PI aware)
211 * @uaddr: non-PI futex source
217 futex_cmp_requeue_pi(enum futex_fn_type fntype, futex_t *uaddr, futex_t val,
220 return futex_syscall(fntype, uaddr, FUTEX_CMP_REQUEUE_PI, nr_wake,
227 * @uaddr: The address of the futex to be modified
237 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval)
239 return __sync_val_compare_and_swap(uaddr, oldval, newval);
244 * @uaddr: The address of the futex to be modified
249 futex_dec(futex_t *uaddr)
251 return __sync_sub_and_fetch(uaddr, 1);
256 * @uaddr: the address of the futex to be modified
261 futex_inc(futex_t *uaddr)
263 return __sync_add_and_fetch(uaddr, 1);
268 * @uaddr: the address of the futex to be modified
274 futex_set(futex_t *uaddr, u_int32_t newval)
276 *uaddr = newval;