PR_GET_TIMERSLACK(2const)
π PR_GET_TIMERSLACK(2const) β the manual page, but make it make sense π
okay bestie, so this is a 2const page from the Linux man-pages, which is basically the lore doc for one specific prctl constant. this one is PR_GET_TIMERSLACK and it's giving "let me peek at my own timer slack real quick" energy. no cap. π
β¨ NAME β¨
PR_GET_TIMERSLACK β get the "current" timer slack value for the calling thread
π LIBRARY π
Standard C library (libc, -lc)
like yes girl, you link it the normal way π«Ά
πΈ SYNOPSIS πΈ
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_GET_TIMERSLACK);
that's it. that's the whole call. one argument, zero drama. π
π DESCRIPTION π
Return the "current" timer slack value of the calling thread.
and before you ask β yes, the calling thread. not the process. not your friend's thread. yours. main character energy only, periodt. π
β RETURN VALUE β
On success, this call returns the nonnegative value described above. On error, -1 is returned, and errno is set to indicate the error.
so like, if it works you get a lil nonnegative number and you say "slay". if it doesn't work you get -1 and errno shows up to explain what went wrong. classic. π
π FILES π
/proc/pid/timerslack_ns
(the file-system way of looking at the same kinda thing, iykyk π§)
π STANDARDS π
Linux.
just Linux. it's an icon, it's a legend, it's the only entry. π
π¦ HISTORY π¦
Linux 2.6.28.
been here since 2.6.28, which is basically ancient history in internet years. respect your elders. π
π SEE ALSO π
lowkey reminder: this page is about the getter. if you wanna set that timer slack instead of just vibing with what you've got, go read the sibling page. the getter doesn't change anything, it just tells you what's up. πΈ
sign-off time π this one's from Linux man-pages 6.20, dated 2026-02-08 β so when you cite it, cite it cute. bye bestie, go read a signal page or something π β¨
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- Copyright 2012-2015, Michael Kerrisk <mtk.manpages@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms