FUTEX_LOCK_PI2(2const) FUTEX_LOCK_PI2(2const)

FUTEX_LOCK_PI2 - lock 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_LOCK_PI2, 0,
             const struct timespec *timeout);

This operation is the same as FUTEX_LOCK_PI(2const), except that the clock against which timeout is measured is selectable.

By default, the (absolute) timeout specified in timeout is measured against the CLOCK_MONOTONIC clock.

See FUTEX_LOCK_PI(2const).

See FUTEX_LOCK_PI(2const).

Linux.

Linux 5.14.

futex(2)

2025-05-30 Linux man-pages 6.15