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§
- The type of hardware memory corruption kill policy for the thread.
Functions§
- Clear the thread memory corruption kill policy and use the system-wide default
- Get the “child subreaper” attribute for this process
- Get the dumpable attribute for this process.
- Get the “keep capabilities” attribute for this process
- Get the thread memory corruption kill policy
- Return the name of the calling thread
- Get the “no new privs” attribute for the calling thread.
- Returns the current parent-death signal
- Get the “THP disable” flag for the calling thread.
- Get the timerslack for the calling thread.
- Set the “child subreaper” attribute for this process
- Set the dumpable attribute which determines if core dumps are created for this process.
- 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 the thread memory corruption kill policy
- Set the name of the calling thread. Strings longer than 15 bytes will be truncated.
- Set the calling threads “no new privs” attribute. Once set this option can not be unset.
- Set the parent-death signal of the calling process. This is the signal that the calling process will get when its parent dies.
- Set the state of the “THP disable” flag for the calling thread. Setting this disables transparent huge pages.
- 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 an identifier (or reset it) to the address memory range.
- Disable all performance counters attached to the calling process.
- Enable all performance counters attached to the calling process.