PR_MCE_KILL_GET(2const)

✨ PR_MCE_KILL_GET πŸ’–

okay bestie, so this is a page from the <pink>2const</pink> section of the Linux man-pages β€” the little family of docs that just describe a bunch of constants you pass into other calls πŸŽ€ (iykyk). And the star of this one? PR_MCE_KILL_GET πŸ’…

It's giving "hey, what's my machine check memory corruption kill policy rn?" and honestly? iconic.


🌸 NAME 🌸

PR_MCE_KILL_GET β€” get the machine check memory corruption kill policy πŸ¦‹


πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc) πŸ’–


✨ SYNOPSIS ✨

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

int prctl(PR_MCE_KILL_GET, 0L, 0L, 0L, 0L);

πŸ’« DESCRIPTION πŸ’«

So basically, this one returns the current per-process machine check kill policy 🫢 β€” like, the policy that's already set for this process, right this second.

Wanna know what all the policies even are? Go peek at PR_MCE_KILL_SET(2const), she explains everything πŸ’œ


πŸŽ€ RETURN VALUE πŸŽ€

On success, this call returns the nonnegative value described above 🌟 (yes, the policy value, she ate).

On error, -1 is returned, and errno is set to indicate the error 😭 periodt.


πŸ‘‘ STANDARDS πŸ‘‘

Linux 🐧 β€” that's the whole vibe, no cap.


🌈 HISTORY 🌈

She's been around since Linux 2.6.32 ⭐ a true veteran, an elder icon.


πŸ’… SEE ALSO πŸ’…


okay that's the whole page bestie, go forth and check your kill policy πŸ¦‹βœ¨

this was Linux man-pages 6.20, dated 2026-02-08, and it lives under the name PR_MCE_KILL_GET(2const) πŸŽ€ mwah, bye! πŸ’–

πŸ“¦ 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