Available on crate feature
thread
only.Expand description
Thread-associated operations.
Structs
SECBIT_*
.Flags for use with
futex
.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.
Enums
Linux per-thread capability.
CLOCK_*
constants for use with clock_gettime
.PR_SCHED_CORE_SCOPE_*
.Operations for use with
futex
.Type of name space referred to by a link.
A return type for
nanosleep
and clock_nanosleep_relative
.SECCOMP_MODE_*
.Value of the fast switch flag controlling system calls user dispatch mechanism without the need
to issue a syscall.
Functions
Get the
securebits
flags of the calling thread.Check if the specified capability is in the ambient 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
current
timer slack value of the calling thread.Disable Syscall User Dispatch mechanism.
Set the state of the
THP disable
flag for the calling thread.Enable Syscall User Dispatch mechanism.
futex(uaddr, op, val, utime, uaddr2, val3)
Get the
clear_child_tid
address set by set_tid_address
and clone
’s CLONE_CHILD_CLEARTID
flag.Get the current state of the calling thread’s
keep capabilities
flag.gettid()
—Returns the thread ID.Check if the specified capability is in the calling thread’s capability bounding set.
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_privs
attribute 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::SetPermittedCapabilities
capability 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.
Set the
securebits
flags of the calling thread.Controls support for passing tagged user-space addresses to the kernel.
Sets the
current
timer slack value for the calling thread.Set the state of the calling thread’s
keep capabilities
flag.Set the name of the calling thread.
Set the calling thread’s
no_new_privs
attribute.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.
Get the thread’s current SVE vector length configuration.
Get the current setting of the
THP disable
flag for the calling thread.Type Definitions
struct timespec