]>
Commit | Line | Data |
---|---|---|
3982d2b5 AC |
1 | .\" Copyright (C) 1994, 1995, Daniel Quinlan <quinlan@yggdrasil.com> |
2 | .\" Copyright (C) 2002-2008, 2017, Michael Kerrisk <mtk.manpages@gmail.com> | |
3 | .\" Copyright (C) 2023, Alejandro Colomar <alx@kernel.org> | |
4 | .\" | |
5 | .\" SPDX-License-Identifier: GPL-3.0-or-later | |
6 | .\" | |
7 | .TH proc_pid_timerslack_ns 5 (date) "Linux man-pages (unreleased)" | |
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) |