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_CLEAR
  • PR_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 errno gets set to tell you exactly what went wrong. No guessing, no mystery, periodt.

πŸ’€ ERRORS πŸ’€

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