From a218ef20dc8afe617b1e7f54d739daa89c3742c8 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 14 Jan 2015 09:39:36 +0100 Subject: [PATCH] futex.2: ERRORS: Add EINVAL case for FUTEX_LOCK_PI and FUTEX_TRYLOCK_PI Reported-by: Thomas Gleixner Signed-off-by: Michael Kerrisk --- man2/futex.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man2/futex.2 b/man2/futex.2 index 2cc5bc894..6dcb5068c 100644 --- a/man2/futex.2 +++ b/man2/futex.2 @@ -822,6 +822,19 @@ The signal number supplied in is invalid. .TP .B EINVAL +.RB ( FUTEX_LOCK_PI , +.BR FUTEX_TRYLOCK_PI ) +The kernel detected an inconsistency between the user-space state at +.I uaddr +and the kernel state. +This indicates either state corruption or that the kernel found a waiter on +.I uaddr +which is waiting via +.BR FUTEX_WAIT +or +.BR FUTEX_WAIT_BITSET . +.TP +.B EINVAL Invalid argument. .TP .BR ENOMEM