Available on crate feature
process
only.Expand description
prctl is a Linux-only API for performing operations on a process or thread.
Note that careless use of some prctl() operations can confuse the user-space run-time environment, so these operations should be used with care.
For more documentation, please read prctl(2).
Enums§
- PrctlMCE
Kill Policy - The type of hardware memory corruption kill policy for the thread.
Functions§
- clear_
mce_ kill - Clear the thread memory corruption kill policy and use the system-wide default
- get_
child_ subreaper - Get the “child subreaper” attribute for this process
- get_
dumpable - Get the dumpable attribute for this process.
- get_
keepcaps - Get the “keep capabilities” attribute for this process
- get_
mce_ kill - Get the thread memory corruption kill policy
- get_
name - Return the name of the calling thread
- get_
no_ new_ privs - Get the “no new privs” attribute for the calling thread.
- get_
pdeathsig - Returns the current parent-death signal
- get_
thp_ disable - Get the “THP disable” flag for the calling thread.
- get_
timerslack - Get the timerslack for the calling thread.
- set_
child_ subreaper - Set the “child subreaper” attribute for this process
- set_
dumpable - Set the dumpable attribute which determines if core dumps are created for this process.
- set_
keepcaps - Set the “keep capabilities” attribute for this process. This causes the thread to retain capabilities even if it switches its UID to a nonzero value.
- set_
mce_ kill - Set the thread memory corruption kill policy
- set_
name - Set the name of the calling thread. Strings longer than 15 bytes will be truncated.
- set_
no_ new_ privs - Set the calling threads “no new privs” attribute. Once set this option can not be unset.
- set_
pdeathsig - Set the parent-death signal of the calling process. This is the signal that the calling process will get when its parent dies.
- set_
thp_ disable - Set the state of the “THP disable” flag for the calling thread. Setting this disables transparent huge pages.
- set_
timerslack - Sets the timer slack value for the calling thread. Timer slack is used by the kernel to group timer expirations and make them the supplied amount of nanoseconds late.
- set_
vma_ anon_ name - Set an identifier (or reset it) to the address memory range.
- task_
perf_ events_ disable - Disable all performance counters attached to the calling process.
- task_
perf_ events_ enable - Enable all performance counters attached to the calling process.