]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man5/proc_pid_timerslack_ns.5
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man5 / proc_pid_timerslack_ns.5
CommitLineData
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
15This file exposes the process's "current" timer slack value,
16expressed in nanoseconds.
17The file is writable,
18allowing the process's timer slack value to be changed.
19Writing 0 to this file resets the "current" timer slack to the
20"default" timer slack value.
21For further details, see the discussion of
22.B PR_SET_TIMERSLACK
23in
24.BR prctl (2).
25.IP
26Initially,
27permission to access this file was governed by a ptrace access mode
28.B PTRACE_MODE_ATTACH_FSCREDS
29check (see
30.BR ptrace (2)).
31However, 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
34capability would also allow it to view and change any process's memory).
35Therefore, since Linux 4.9,
36.\" commit 7abbaf94049914f074306d960b0f968ffe52e59f
37only the (weaker)
38.B CAP_SYS_NICE
39capability is required to access this file.
40.SH SEE ALSO
41.BR proc (5)