futex: Clarify FUTEX2 flags
authorpeterz@infradead.org <peterz@infradead.org>
Thu, 21 Sep 2023 10:45:06 +0000 (12:45 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 21 Sep 2023 17:22:04 +0000 (19:22 +0200)
commit4923954bbc4a760e0b2210e0cb5733726ac2e2e9
treedc148ad41454f6eb031a9d569b81f6bb40badaa0
parentc6f4a90022524d06f6d9de323b1757031dcf0c26
futex: Clarify FUTEX2 flags

sys_futex_waitv() is part of the futex2 series (the first and only so
far) of syscalls and has a flags field per futex (as opposed to flags
being encoded in the futex op).

This new flags field has a new namespace, which unfortunately isn't
super explicit. Notably it currently takes FUTEX_32 and
FUTEX_PRIVATE_FLAG.

Introduce the FUTEX2 namespace to clarify this

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://lore.kernel.org/r/20230921105247.507327749@noisy.programming.kicks-ass.net
include/uapi/linux/futex.h
kernel/futex/syscalls.c