/linux/tools/testing/selftests/futex/include/ |
H A D | futextest.h | 88 futex_wake(futex_t *uaddr, int nr_wake, int opflags) in futex_wake() argument 90 return futex(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags); in futex_wake() 110 futex_wake_bitset(futex_t *uaddr, int nr_wake, u_int32_t bitset, int opflags) in futex_wake_bitset() argument 112 return futex(uaddr, FUTEX_WAKE_BITSET, nr_wake, NULL, NULL, bitset, in futex_wake_bitset() 140 futex_wake_op(futex_t *uaddr, futex_t *uaddr2, int nr_wake, int nr_wake2, in futex_wake_op() argument 143 return futex(uaddr, FUTEX_WAKE_OP, nr_wake, nr_wake2, uaddr2, wake_op, in futex_wake_op() 156 futex_requeue(futex_t *uaddr, futex_t *uaddr2, int nr_wake, int nr_requeue, in futex_requeue() argument 159 return futex(uaddr, FUTEX_REQUEUE, nr_wake, nr_requeue, uaddr2, 0, in futex_requeue() 169 futex_cmp_requeue(futex_t *uaddr, futex_t val, futex_t *uaddr2, int nr_wake, in futex_cmp_requeue() argument 172 return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue() [all …]
|
/linux/tools/perf/bench/ |
H A D | futex.h | 77 futex_wake(u_int32_t *uaddr, int nr_wake, int opflags) in futex_wake() argument 79 return futex_syscall(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags); in futex_wake() 106 futex_cmp_requeue(u_int32_t *uaddr, u_int32_t val, u_int32_t *uaddr2, int nr_wake, in futex_cmp_requeue() argument 109 return futex_syscall_nr_requeue(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2, in futex_cmp_requeue()
|
/linux/kernel/futex/ |
H A D | waitwake.c | 155 int futex_wake(u32 __user *uaddr, unsigned int flags, int nr_wake, u32 bitset) in futex_wake() argument 170 if ((flags & FLAGS_STRICT) && !nr_wake) in futex_wake() 193 if (++ret >= nr_wake) in futex_wake() 254 int nr_wake, int nr_wake2, int op) in futex_wake_op() argument 308 if (++ret >= nr_wake) in futex_wake_op()
|
H A D | requeue.c | 369 int nr_wake, int nr_requeue, u32 *cmpval, int requeue_pi) in futex_requeue() argument 378 if (nr_wake < 0 || nr_requeue < 0) in futex_requeue() 419 if (nr_wake != 1) in futex_requeue() 575 if (task_count - nr_wake >= nr_requeue) in futex_requeue() 597 if (++task_count <= nr_wake) in futex_requeue()
|
H A D | futex.h | 398 int nr_wake, int nr_requeue, 432 extern int futex_wake(u32 __user *uaddr, unsigned int flags, int nr_wake, u32 bitset); 435 u32 __user *uaddr2, int nr_wake, int nr_wake2, int op);
|
H A D | syscalls.c | 417 int, nr_wake, in SYSCALL_DEFINE4() argument 438 nr_wake, nr_requeue, &cmpval, 0); in SYSCALL_DEFINE4()
|
/linux/tools/testing/selftests/futex/functional/ |
H A D | futex_requeue_pi.c | 152 int nr_wake = 1; in broadcast_wakerfn() local 167 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, in broadcast_wakerfn() 200 int nr_wake = 1; in signal_wakerfn() local 220 nr_wake, nr_requeue, in signal_wakerfn()
|
/linux/Documentation/locking/ |
H A D | futex-requeue-pi.rst | 118 nr_wake+nr_requeue tasks to the PI futex, calling 124 FUTEX_CMP_REQUEUE_PI accepts nr_wake and nr_requeue as arguments, but 126 requeue up to nr_wake + nr_requeue tasks. It will wake only as many 131 nr_wake=1. nr_requeue should be INT_MAX for broadcast and 0 for
|
/linux/include/linux/ |
H A D | syscalls.h | 582 unsigned int flags, int nr_wake, int nr_requeue);
|