Debian Codegraph @

upstream/debian-unstable/man5/proc_pid_timerslack_ns.5

raw
1 .\" Copyright 1994-1995, Daniel Quinlan <[email protected]>
2 .\" Copyright 2002-2017, Michael Kerrisk <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-3.0-or-later
6 .\"
7 .TH proc_pid_timerslack_ns 5 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 /proc/pid/timerslack_ns \- timer slack in nanoseconds
10 .SH DESCRIPTION
11 .TP
12 .IR /proc/ pid /timerslack_ns " (since Linux 4.6)"
13 .\" commit da8b44d5a9f8bf26da637b7336508ca534d6b319
14 .\" commit 5de23d435e88996b1efe0e2cebe242074ce67c9e
15 This file exposes the process's "current" timer slack value,
16 expressed in nanoseconds.
17 The file is writable,
18 allowing the process's timer slack value to be changed.
19 Writing 0 to this file resets the "current" timer slack to the
20 "default" timer slack value.
21 For further details, see the discussion of
22 .B PR_SET_TIMERSLACK
23 in
24 .BR prctl (2).
25 .IP
26 Initially,
27 permission to access this file was governed by a ptrace access mode
28 .B PTRACE_MODE_ATTACH_FSCREDS
29 check (see
30 .BR ptrace (2)).
31 However, this was subsequently deemed too strict a requirement
32 (and had the side effect that requiring a process to have the
33 .B CAP_SYS_PTRACE
34 capability would also allow it to view and change any process's memory).
35 Therefore, since Linux 4.9,
36 .\" commit 7abbaf94049914f074306d960b0f968ffe52e59f
37 only the (weaker)
38 .B CAP_SYS_NICE
39 capability is required to access this file.
40 .SH SEE ALSO
41 .BR proc (5)