Debian Codegraph @

upstream/debian-unstable/man2/PR_MCE_KILL.2const

raw
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 2const 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 PR_MCE_KILL
10 \-
11 set 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 .BI "int prctl(PR_MCE_KILL, long " op ", ...);"
21 .fi
22 .SH DESCRIPTION
23 Set the machine check memory corruption kill policy for the calling thread.
24 .P
25 .I op
26 is one of the following operations:
27 .TP
28 .B PR_MCE_KILL_CLEAR
29 .TQ
30 .B PR_MCE_KILL_SET
31 .P
32 The policy is inherited by children.
33 .SH RETURN VALUE
34 On success,
35 0 is returned.
36 On error, \-1 is returned, and
37 .I errno
38 is set to indicate the error.
39 .SH ERRORS
40 .TP
41 .B EINVAL
42 .I op
43 is not a valid value.
44 .SH STANDARDS
45 Linux.
46 .SH HISTORY
47 Linux 2.6.32.
48 .SH SEE ALSO
49 .BR prctl (2),
50 .BR PR_MCE_KILL_CLEAR (2const),
51 .BR PR_MCE_KILL_SET (2const),
52 .BR PR_MCE_KILL_GET (2const)