FUTEX_LOCK_PI2(2const)

FUTEX_LOCK_PI22const

Lock a priority‐inheritance futex

Usage

#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);

Library

Standard C library (libc, -lc)

Overview

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.

Return value

See FUTEX_LOCK_PI(2const).

Errors

See FUTEX_LOCK_PI(2const).

Standards

Linux.

History

Linux 5.14.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.