PR_MCE_KILL_CLEAR(2const)

✨ PR_MCE_KILL_CLEAR ✨

okay so bestie, we're deep in the 2const girlies section of the manual β€” this one is PR_MCE_KILL_CLEAR, and it's a lil prctl constant that resets your machine check memory corruption kill policy. tiny page, big vibes, let's go πŸ’…


🌸 NAME 🌸

PR_MCE_KILL_CLEAR β€” clear the machine check memory corruption kill policy

πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc) β€” the classic, no cap.

πŸŽ€ SYNOPSIS πŸŽ€

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

int prctl(PR_MCE_KILL, PR_MCE_KILL_CLEAR, 0L, 0L, 0L);

like. look at those three lil 0Ls just sitting there. icons. they mean nothing and everything 🫢

πŸ’– DESCRIPTION πŸ’–

Clear the thread memory corruption kill policy and use the system-wide default.

that's it. that's the whole thing. it's giving "factory reset but make it per-thread" ✨

πŸ”₯ RETURN VALUE πŸ”₯

On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.

so like, if you get 0 you're slaying, and if you get -1 you gotta go read errno and find out what went wrong, sorry babe 😭

πŸ¦‹ FILES πŸ¦‹

  • /proc/sys/vm/memory_failure_early_kill β€” This file defines the system-wide default.

yep, that's the file holding the system-wide default that PR_MCE_KILL_CLEAR hands the reins back to πŸ‘‘

⭐ STANDARDS ⭐

Linux.

just Linux. she's not POSIX, she doesn't wanna be, she's built different πŸ’€

🌈 HISTORY 🌈

Linux 2.6.32.

ancient. vintage. still valid. the way that she's been here since 2.6.32 and never left β€” main character energy fr fr πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page bestie!! go forth and clear those policies πŸ’…βœ¨

this was brought to you by Linux man-pages 6.20, dated 2026-02-08 β€” the PR_MCE_KILL_CLEAR(2const) page, signed off with love πŸŽ€ no cap, she ate.

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