Debian Codegraph @

upstream/debian-trixie/man2/PR_GET_TIMERSLACK.2const

raw
1 .\" Copyright 2012, 2013, 2015, Michael Kerrisk <[email protected]>
2 .\" Copyright 2024, Alejandro Colomar <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH PR_GET_TIMERSLACK 2const 2024-06-02 "Linux man-pages 6.9.1"
7 .SH NAME
8 PR_GET_TIMERSLACK
9 \-
10 get the "current" timer slack value for the calling thread
11 .SH LIBRARY
12 Standard C library
13 .RI ( libc ", " \-lc )
14 .SH SYNOPSIS
15 .nf
16 .BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */"
17 .B #include <sys/prctl.h>
18 .P
19 .B int prctl(PR_GET_TIMERSLACK);
20 .fi
21 .SH DESCRIPTION
22 Return
23 the "current" timer slack value of the calling thread.
24 .SH RETURN VALUE
25 On success,
26 this call
27 returns the nonnegative value described above.
28 On error, \-1 is returned, and
29 .I errno
30 is set to indicate the error.
31 .SH FILES
32 .TP
33 .IR /proc/\: pid /\:timerslack_ns
34 .SH STANDARDS
35 Linux.
36 .SH HISTORY
37 Linux 2.6.28.
38 .SH SEE ALSO
39 .BR signal (2),
40 .BR PR_SET_TIMERSLACK (2const),
41 .BR proc_pid_timerslack_ns (5)