---
name: "PR_MCE_KILL"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PR_MCE_KILL"
---

# PR\_MCE\_KILL(2const)

set the machine check memory corruption kill policy

## NAME

PR\_MCE\_KILL - set the machine check memory corruption kill policy

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

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

**int prctl(PR\_MCE\_KILL, long** *op***, ...);**

## DESCRIPTION

Set the machine check memory corruption kill policy for the calling thread.

*op* is one of the following operations:

- **PR\_MCE\_KILL\_CLEAR** **PR\_MCE\_KILL\_SET**

  The policy is inherited by children.

## RETURN VALUE

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

## ERRORS

- **EINVAL**

  *op* is not a valid value.

## STANDARDS

Linux.

## HISTORY

Linux 2.6.32.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_MCE\_KILL\_CLEAR**(2const)](/PR_MCE_KILL_CLEAR/2const.md), [**PR\_MCE\_KILL\_SET**(2const)](/PR_MCE_KILL_SET/2const.md), [**PR\_MCE\_KILL\_GET**(2const)](/PR_MCE_KILL_GET/2const.md)
