PR_GET_TIMING(2const)

✨ NAME ✨

PR_GET_TIMING β€” bestie, this is the one that tells you which process timing mode is currently in use πŸ’– (it's a prctl(2) operation, so it lives in the PR_GET_TIMING(2const) girlies' club πŸŽ€)


πŸ“š LIBRARY

Standard C library (libc, -lc) β€” yeah she's just sitting right there in libc, no extra drama needed 🫢


🌸 SYNOPSIS

#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>

int prctl(PR_GET_TIMING);

okay so you literally just call prctl with one argument and that's the whole vibe ✨


πŸ’… DESCRIPTION

Return which process timing method is currently in use.

That's it. That's the girl. She reads the current timing mode and hands it back to you, no side quests, no notes πŸ’œ


🌈 RETURN VALUE

On success, PR_GET_TIMING returns the nonnegative value described above πŸ‘‘

On error, -1 is returned, and errno is set to indicate the error 😭 (yes, the classic -1 + errno combo, we know her)


πŸ‘‘ STANDARDS

Linux.


πŸ¦‹ HISTORY

Linux 2.6.0. She's been iconic since day one, fr fr ⭐


πŸ”₯ SEE ALSO


no cap, that's the whole page bestie πŸ’– go forth and vibe check your timing mode 🌸

this lil masterpiece comes to you from Linux man-pages 6.20, dated 2026-02-08 πŸŽ€ mwah, drink some water, ily 🫢

πŸ“¦ 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms