MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / machine_check_memory_corruption_kill_policy

Function machine_check_memory_corruption_kill_policy

src/process/prctl.rs:572–576  ·  view source on GitHub ↗
(
)

Source from the content-addressed store, hash-verified

570#[inline]
571#[doc(alias = "PR_MCE_KILL_GET")]
572pub fn machine_check_memory_corruption_kill_policy(
573) -> io::Result<MachineCheckMemoryCorruptionKillPolicy> {
574 let r = unsafe { prctl_1arg(PR_MCE_KILL_GET)? } as c_uint;
575 MachineCheckMemoryCorruptionKillPolicy::try_from(r)
576}
577
578const PR_MCE_KILL: c_int = 33;
579

Callers

nothing calls this directly

Calls 1

prctl_1argFunction · 0.85

Tested by

no test coverage detected