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
- 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