From 7a39e745a70afff7326b7e1816076a439ab30ec1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 14 Jan 2015 11:24:56 +0100 Subject: [PATCH] futex.2: ERRORS: Add EDEADLK case for FUTEX_LOCK_PI and FUTEX_TRYLOCK_PI Reported-by: Thomas Gleixner Signed-off-by: Michael Kerrisk --- man2/futex.2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man2/futex.2 b/man2/futex.2 index 61f1b1bcb..4d9b59f24 100644 --- a/man2/futex.2 +++ b/man2/futex.2 @@ -760,6 +760,13 @@ Try again. .\" futex_requeue() ==> futex_proxy_trylock_atomic() ==> .\" futex_lock_pi_atomic() ==> attach_to_pi_owner() ==> EAGAIN? .TP +.BR EDEADLK +.RB ( FUTEX_LOCK_PI , +.BR FUTEX_TRYLOCK_PI ) +The futex at +.I uaddr +is already locked by the caller. +.TP .B EFAULT A required pointer argument (i.e., .IR uaddr ,