FUTEX_UNLOCK_PI
unlock a priority‐inheritance futex
- Provided by: manpages-dev (Version: 6.17-1)
- Source: manpages
- Report a bug
unlock a priority‐inheritance futex
Standard C library (libc, -lc)
#include <linux/futex.h> /* Definition of FUTEX_* constants */ #include <sys/syscall.h> /* Definition of SYS_* constants */ #include <unistd.h>
long syscall(SYS_futex, uint32_t *uaddr, FUTEX_UNLOCK_PI);
This operation wakes the top priority waiter that is waiting in FUTEX_LOCK_PI(2const) or FUTEX_LOCK_PI2(2const) on the futex address provided by the uaddr argument.
This is called when the user-space value at uaddr cannot be changed atomically from a TID (of the owner) to 0.
On error, -1 is returned, and errno is set to indicate the error.
On success, FUTEX_UNLOCK_PI returns 0 if the futex was successfully unlocked.
See futex(2).
Linux.
Linux 2.6.18.