Available on crate feature
thread only.Expand description
Thread-associated operations.
Structs
SECBIT_*.CAP_*constants.__user_cap_data_structFUTEX_*flags for use withfutex.gid_t—A Unix group ID.pid_t—A non-zero Unix process ID.- Scalable Vector Extension vector length configuration.
- Zero means addresses that are passed for the purpose of being dereferenced by the kernel must be untagged.
- Thread name space type.
uid_t—A Unix user ID.CLONE_*for use withunshare.
Enums
- Linux per-thread capability.
CLOCK_*constants for use withclock_gettime.PR_SCHED_CORE_SCOPE_*.FUTEX_*operations for use withfutex.- Type of name space referred to by a link.
- A return type for
nanosleepandclock_nanosleep_relative. SECCOMP_MODE_*.- Value of the fast switch flag controlling system calls user dispatch mechanism without the need to issue a syscall.
Functions
capget(_LINUX_CAPABILITY_VERSION_3, pid)- Get the
securebitsflags of the calling thread. - Check if the specified capability is in the ambient set.
- Check if the specified capability is in the calling thread’s capability bounding set.
- Remove all capabilities from the ambient set.
clock_nanosleep(id, TIMER_ABSTIME, request, NULL)—Sleeps until an absolute time on a given clock.clock_nanosleep(id, 0, request, remain)—Sleeps for a duration on a given clock.- Add or remove the specified capability to the ambient set.
- Get core scheduling cookie of a process.
- Create unique core scheduling cookie.
- Get the current tagged address mode for the calling thread.
- Get the
currenttimer slack value of the calling thread. - Disable Syscall User Dispatch mechanism.
- Set the state of the
THP disableflag for the calling thread. - Enable Syscall User Dispatch mechanism.
futex(uaddr, op, val, utime, uaddr2, val3)- Get the
clear_child_tidaddress set byset_tid_addressandclone’sCLONE_CHILD_CLEARTIDflag. - Get the current state of the calling thread’s
keep capabilitiesflag. gettid()—Returns the thread ID.- Reassociate the calling thread with the namespace associated with link referred to by
fd. - Atomically move the calling thread into one or more of the same namespaces as the thread referred to by
fd. - Get the name of the calling thread.
nanosleep(request, remain)—Sleeps for a duration.- Get the value of the
no_new_privsattribute for the calling thread. - Pull core scheduling cookie from a process.
- Push core scheduling cookie to a process.
- If the calling thread has the
Capability::SetPermittedCapabilitiescapability within its user namespace, then drop the specified capability from the thread’s capability bounding set. - Securely reset the thread’s pointer authentication keys to fresh random values generated by the kernel.
capset(_LINUX_CAPABILITY_VERSION_3, pid, effective, permitted, inheritable)- Set the
securebitsflags of the calling thread. - Controls support for passing tagged user-space addresses to the kernel.
- Sets the
currenttimer slack value for the calling thread. - Set the state of the calling thread’s
keep capabilitiesflag. - Set the name of the calling thread.
- Set the calling thread’s
no_new_privsattribute. - Set the secure computing mode for the calling thread, to limit the available system calls.
- Configure the thread’s vector length of Scalable Vector Extension.
setgid(gid)setresgid(rgid, egid, sgid)setresuid(ruid, euid, suid)setuid(uid)- Get the thread’s current SVE vector length configuration.
- Get the current setting of the
THP disableflag for the calling thread. unshare(flags)—Disassociate parts of the current thread’s execution context with other threads.
Type Aliases
- A group identifier as a raw integer.
- A process identifier as a raw integer.
- A user identifier as a raw integer.
struct timespec