Debian Codegraph @

upstream/debian-unstable/man2/FUTEX_LOCK_PI2.2const

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" %%%LICENSE_START(FREELY_REDISTRIBUTABLE)
4 .\" may be freely modified and distributed
5 .\" %%%LICENSE_END
6 .\"
7 .TH FUTEX_LOCK_PI2 2const 2025-05-30 "Linux man-pages 6.18"
8 .SH NAME
9 FUTEX_LOCK_PI2 \- lock a priority‐inheritance futex
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .BR "#include <linux/futex.h>" " /* Definition of " FUTEX_* " constants */"
16 .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
17 .B #include <unistd.h>
18 .P
19 .BI "long syscall(SYS_futex, uint32_t *" uaddr ", FUTEX_LOCK_PI2, 0,"
20 .BI " const struct timespec *" timeout );
21 .fi
22 .SH DESCRIPTION
23 This operation is the same as
24 .BR FUTEX_LOCK_PI (2const),
25 except that the clock against which
26 .I timeout
27 is measured is selectable.
28 .P
29 By default, the (absolute) timeout specified in
30 .I timeout
31 is measured against the
32 .B CLOCK_MONOTONIC
33 clock.
34 .\"
35 .SH RETURN VALUE
36 See
37 .BR FUTEX_LOCK_PI (2const).
38 .SH ERRORS
39 See
40 .BR FUTEX_LOCK_PI (2const).
41 .SH STANDARDS
42 Linux.
43 .SH HISTORY
44 Linux 5.14.
45 .\" commit bf22a6976897977b0a3f1aeba6823c959fc4fdae
46 .SH SEE ALSO
47 .BR futex (2)