Module prctl
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
- PrctlMCEKillPolicy 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.