logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PR_MCE_KILL_SET - set the machine check memory corruption kill policy

Description

Use a thread-specific memory corruption kill policy. pol defines whether the policy is earlykill (PR_MCE_KILL_EARLY), latekill (PR_MCE_KILL_LATE), or the system-wide default (PR_MCE_KILL_DEFAULT). Early kill means that the thread receives a SIGBUS signal as soon as hardware memory corruption is detected inside its address space. In late kill mode, the process is killed only when it accesses a corrupted page. See sigaction(2) for more information on the SIGBUS signal.

Errors

EINVALpol is not a valid value.

History

Linux 2.6.32.

Library

Standard C library (libc, -lc)

Name

PR_MCE_KILL_SET - set the machine check memory corruption kill policy

Return Value

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

See Also

prctl(2), PR_MCE_KILL(2const) Linux man-pages 6.9.1 2024-06-01 PR_MCE_KILL_SET(2const)

Standards

Linux.

Synopsis

#include<linux/prctl.h> /* Definition of PR_* constants */ #include<sys/prctl.h>intprctl(PR_MCE_KILL,PR_MCE_KILL_SET,longpol,0L,0L);

See Also