Expand description
Bindings for the Linux prctl
system call.
There are similarities (but also differences) with FreeBSD’s procctl
system call, whose interface is located in the procctl.rs
file.
Structs§
PR_FPEMU_*
flags for use withfloating_point_emulation_control
andset_floating_point_emulation_control
.- Zero means floating point exceptions are disabled.
- This structure provides new memory descriptor map which mostly modifies
/proc/pid/stat[m]
output for a task. This mostly done in a sake of checkpoint/restore functionality. PR_SPEC_*
flags for use withcontrol_speculative_feature
.- Zero means the processors are not vulnerable.
Enums§
PR_ENDIAN_*
values for use withendian_mode
.PR_MCE_KILL_*
values for use withmachine_check_memory_corruption_kill_policy
andset_machine_check_memory_corruption_kill_policy
.- Process ptracer.
PR_SET_MM_*
values for use withset_virtual_memory_map_address
.
Constants§
Functions§
- Get the
child subreaper
setting of the calling process. - Put the process in the
IO_FLUSHER
state, allowing it to make progress when allocating memory. - Enable or disable all performance counters attached to the calling process.
- Set enabled pointer authentication keys.
- Provides one-shot access to all the addresses by passing in a
PrctlMmMap
. - Sets the state of the speculation misfeature.
- Get the current state of the calling process’
dumpable
attribute. - Get enabled pointer authentication keys.
- Get the endianness of the calling process.
- Get floating point emulation control bits.
- Get floating point exception mode.
- Get the current floating point mode.
- Get the
IO_FLUSHER
state of the caller. - Get the current per-process machine check kill policy.
- Get the current value of the parent process death signal.
- Set a new auxiliary vector.
- Set the
child subreaper
attribute of the calling process. - Set the state of the
dumpable
attribute. - Set the endianness of the calling process.
- Supersede the
/proc/pid/exe
symbolic link with a new one pointing to a new executable file. - Set floating point emulation control bits.
- Set floating point exception mode.
- Allow control of the floating point mode from user space.
- Set the machine check memory corruption kill policy for the calling thread.
- Set the parent-death signal of the calling process.
- Declare that the ptracer process can
ptrace
the calling process as if it were a direct process ancestor. - Set the state of the flag determining if the timestamp counter can be read by the process.
- Set whether to use (normal, traditional) statistical process timing or accurate timestamp-based process timing.
- Set unaligned access control bits.
- Modify certain kernel memory map descriptor addresses of the calling process.
- Set the name for a virtual memory region.
- Get the state of the speculation misfeature.
- Get the state of the flag determining if the timestamp counter can be read.
- Get which process timing method is currently in use.
- Get unaligned access control bits.
- Get the size of the
PrctlMmMap
the kernel expects.