/linux-6.1.9/include/uapi/linux/ |
D | futex.h | 26 #define FUTEX_PRIVATE_FLAG 128 macro 28 #define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME) 30 #define FUTEX_WAIT_PRIVATE (FUTEX_WAIT | FUTEX_PRIVATE_FLAG) 31 #define FUTEX_WAKE_PRIVATE (FUTEX_WAKE | FUTEX_PRIVATE_FLAG) 32 #define FUTEX_REQUEUE_PRIVATE (FUTEX_REQUEUE | FUTEX_PRIVATE_FLAG) 33 #define FUTEX_CMP_REQUEUE_PRIVATE (FUTEX_CMP_REQUEUE | FUTEX_PRIVATE_FLAG) 34 #define FUTEX_WAKE_OP_PRIVATE (FUTEX_WAKE_OP | FUTEX_PRIVATE_FLAG) 35 #define FUTEX_LOCK_PI_PRIVATE (FUTEX_LOCK_PI | FUTEX_PRIVATE_FLAG) 36 #define FUTEX_LOCK_PI2_PRIVATE (FUTEX_LOCK_PI2 | FUTEX_PRIVATE_FLAG) 37 #define FUTEX_UNLOCK_PI_PRIVATE (FUTEX_UNLOCK_PI | FUTEX_PRIVATE_FLAG) [all …]
|
/linux-6.1.9/tools/testing/selftests/futex/functional/ |
D | futex_requeue_pi.c | 124 FUTEX_PRIVATE_FLAG); in waiterfn() 136 futex_lock_pi(&f2, NULL, 0, FUTEX_PRIVATE_FLAG); in waiterfn() 138 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in waiterfn() 161 futex_lock_pi(&f2, NULL, 0, FUTEX_PRIVATE_FLAG); in broadcast_wakerfn() 166 FUTEX_PRIVATE_FLAG); in broadcast_wakerfn() 180 futex_wake(&wake_complete, 1, FUTEX_PRIVATE_FLAG); in broadcast_wakerfn() 183 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in broadcast_wakerfn() 212 futex_lock_pi(&f2, NULL, 0, FUTEX_PRIVATE_FLAG); in signal_wakerfn() 219 FUTEX_PRIVATE_FLAG); in signal_wakerfn() 226 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in signal_wakerfn() [all …]
|
D | futex_requeue_pi_signal_restart.c | 103 FUTEX_PRIVATE_FLAG); in waiterfn() 109 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in waiterfn() 167 futex_lock_pi(&f2, 0, 0, FUTEX_PRIVATE_FLAG); in main() 183 FUTEX_PRIVATE_FLAG); in main() 213 futex_unlock_pi(&f2, FUTEX_PRIVATE_FLAG); in main()
|
D | futex_requeue_pi_mismatched_ops.c | 46 child_ret = futex_wait(&f1, f1, NULL, FUTEX_PRIVATE_FLAG); in blocking_child() 96 ret = futex_cmp_requeue_pi(&f1, f1, &f2, 1, 0, FUTEX_PRIVATE_FLAG); in main() 104 ret = futex_wake(&f1, 1, FUTEX_PRIVATE_FLAG); in main()
|
D | futex_waitv.c | 91 waitv[i].flags = FUTEX_32 | FUTEX_PRIVATE_FLAG; in main() 102 res = futex_wake(u64_to_ptr(waitv[NR_FUTEXES - 1].uaddr), 1, FUTEX_PRIVATE_FLAG); in main() 149 waitv[0].flags = FUTEX_PRIVATE_FLAG; in main() 167 waitv[0].flags = FUTEX_PRIVATE_FLAG | FUTEX_32; in main()
|
D | futex_wait.c | 52 unsigned int flags = FUTEX_PRIVATE_FLAG; in main() 87 res = futex_wake(futex, 1, FUTEX_PRIVATE_FLAG); in main()
|
D | futex_wait_wouldblock.c | 76 res = futex_wait(&f1, f1+1, &to, FUTEX_PRIVATE_FLAG); in main()
|
/linux-6.1.9/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | Util.py | 14 FUTEX_PRIVATE_FLAG = 128 variable 16 FUTEX_CMD_MASK = ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
|
/linux-6.1.9/tools/testing/selftests/futex/include/ |
D | futextest.h | 43 FUTEX_PRIVATE_FLAG) 47 FUTEX_PRIVATE_FLAG)
|
/linux-6.1.9/kernel/futex/ |
D | syscalls.c | 91 if (!(op & FUTEX_PRIVATE_FLAG)) in do_futex() 173 if (unlikely(should_fail_futex(!(op & FUTEX_PRIVATE_FLAG)))) in SYSCALL_DEFINE6() 187 #define FUTEXV_WAITER_MASK (FUTEX_32 | FUTEX_PRIVATE_FLAG)
|
D | waitwake.c | 422 if ((vs[i].w.flags & FUTEX_PRIVATE_FLAG) && retry) in futex_wait_multiple_setup() 426 !(vs[i].w.flags & FUTEX_PRIVATE_FLAG), in futex_wait_multiple_setup()
|
/linux-6.1.9/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 286 flags |= FUTEX_PRIVATE_FLAG; in mutex_lock() 307 flags |= FUTEX_PRIVATE_FLAG; in mutex_unlock()
|
/linux-6.1.9/tools/perf/trace/beauty/ |
D | futex_op.c | 54 if (op & FUTEX_PRIVATE_FLAG) in syscall_arg__scnprintf_futex_op()
|
/linux-6.1.9/tools/lib/traceevent/plugins/ |
D | plugin_futex.c | 102 if (args.op & FUTEX_PRIVATE_FLAG) in futex_handler()
|
/linux-6.1.9/tools/perf/bench/ |
D | futex-wake.c | 172 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_wake()
|
D | futex-hash.c | 163 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_hash()
|
D | futex-lock-pi.c | 195 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_lock_pi()
|
D | futex-requeue.c | 197 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_requeue()
|
D | futex-wake-parallel.c | 287 futex_flag = FUTEX_PRIVATE_FLAG; in bench_futex_wake_parallel()
|
/linux-6.1.9/Documentation/userspace-api/ |
D | futex2.rst | 77 private futexes, it's necessary to specify ``FUTEX_PRIVATE_FLAG`` in the futex
|