| 1 |
.\" Copyright 2010, Andi Kleen <[email protected]> |
| 2 |
.\" Copyright 2012-2015, Michael Kerrisk <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 6 |
.\" |
| 7 |
.TH PR_MCE_KILL_CLEAR 2const 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
PR_MCE_KILL_CLEAR |
| 10 |
\- |
| 11 |
clear the machine check memory corruption kill policy |
| 12 |
.SH LIBRARY |
| 13 |
Standard C library |
| 14 |
.RI ( libc ,\~ \-lc ) |
| 15 |
.SH SYNOPSIS |
| 16 |
.nf |
| 17 |
.BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */" |
| 18 |
.B #include <sys/prctl.h> |
| 19 |
.P |
| 20 |
.B int prctl(PR_MCE_KILL, PR_MCE_KILL_CLEAR, 0L, 0L, 0L); |
| 21 |
.fi |
| 22 |
.SH DESCRIPTION |
| 23 |
Clear the thread memory corruption kill policy and |
| 24 |
use the system-wide default. |
| 25 |
.SH RETURN VALUE |
| 26 |
On success, |
| 27 |
0 is returned. |
| 28 |
On error, \-1 is returned, and |
| 29 |
.I errno |
| 30 |
is set to indicate the error. |
| 31 |
.SH FILES |
| 32 |
.TP |
| 33 |
.I /proc/sys/vm/\:memory_failure_early_kill |
| 34 |
This file defines the system-wide default. |
| 35 |
.SH STANDARDS |
| 36 |
Linux. |
| 37 |
.SH HISTORY |
| 38 |
Linux 2.6.32. |
| 39 |
.SH SEE ALSO |
| 40 |
.BR prctl (2), |
| 41 |
.BR PR_MCE_KILL (2const), |
| 42 |
.BR proc_sys_vm (5) |