diff options
| author | Thomas Gleixner <tglx@kernel.org> | 2026-06-02 12:09:38 +0300 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-06-03 12:38:50 +0300 |
| commit | 2cb5251d3d64d57c172185b9b608f704b3015f26 (patch) | |
| tree | f156d7e36a5c6d4e8acf20e01e953e5897e5d6c8 /include | |
| parent | 1f7f4816b9b05e5110bc1c8a05c3c478e2dae11b (diff) | |
| download | linux-2cb5251d3d64d57c172185b9b608f704b3015f26.tar.xz | |
futex: Provide UABI defines for robust list entry modifiers
The marker for PI futexes in the robust list is a hardcoded 0x1 which lacks
any sensible form of documentation.
Provide proper defines for the bit and the mask and fix up the usage
sites. Thereby convert the boolean pi argument into a modifier argument,
which allows new modifier bits to be trivially added and conveyed.
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://patch.msgid.link/20260602090535.458758556@kernel.org
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/linux/futex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/futex.h b/include/uapi/linux/futex.h index 7e2744ec8933..29bf2f65406a 100644 --- a/include/uapi/linux/futex.h +++ b/include/uapi/linux/futex.h @@ -177,6 +177,10 @@ struct robust_list_head { */ #define ROBUST_LIST_LIMIT 2048 +/* Modifiers for robust_list_head::list_op_pending */ +#define FUTEX_ROBUST_MOD_PI (0x1UL) +#define FUTEX_ROBUST_MOD_MASK (FUTEX_ROBUST_MOD_PI) + /* * bitset with all bits set for the FUTEX_xxx_BITSET OPs to request a * match of any bit. |
