PR_MCE_KILL(2const)
π PR_MCE_KILL(2const) π
okay bestie, so this one lives in the Linux man-pages 6.20 collection, and it's PR_MCE_KILL, a prctl(2) constant. She's giving very niche, very "if you know you know" energy, and honestly? We're obsessed. π¦
β¨ NAME β¨
PR_MCE_KILL β set the machine check memory corruption kill policy π
π LIBRARY π
Standard C library (libc, -lc). The usual girlies, the usual situation. π
π SYNOPSIS π
#include <linux/prctl.h> /* Definition of PR_* constants */
#include <sys/prctl.h>
int prctl(PR_MCE_KILL, long op, ...);
πΈ DESCRIPTION πΈ
So here's the tea, bestie: this call sets the machine check memory corruption kill policy for the calling thread. Just the thread that asked, not the whole squad. π«Ά
And op is literally one of these operations:
PR_MCE_KILL_CLEARPR_MCE_KILL_SET
Also, heads up: the policy is inherited by children. So whatever you pick here, your baby threads/processes carry it with them like a family heirloom. π
β RETURN VALUE β
- Success? It's a 0. Slay, we love a clean exit. β¨
- Error? It's a -1, and
errnogets set to tell you exactly what went wrong. No guessing, no mystery, periodt.
π ERRORS π
EINVALβopis not a valid value. Basically: girl, that's not one of the options. Try again with something real. π
π STANDARDS π
Linux. That's it, that's the standard. π§
π¦ HISTORY π¦
Linux 2.6.32. A classic. A legend. The icon, the moment, the blueprint. π
π₯ SEE ALSO π₯
and that's the whole page, bestie β courtesy of the Linux man-pages 6.20, dated 2026-02-08. sending u good vibes and clean exit codes, mwah ππ§πΈ
π¦ 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 2010, Andi Kleen <andi@firstfloor.org>
- 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