devela::_dep::rustix::thread

Function move_into_thread_name_spaces

pub fn move_into_thread_name_spaces(
    fd: BorrowedFd<'_>,
    allowed_types: ThreadNameSpaceType,
) -> Result<(), Errno> 
Available on crate feature dep_rustix only.
Expand description

Atomically move the calling thread into one or more of the same namespaces as the thread referred to by fd.

fd must refer to a thread ID. See: pidfd_open and clone.

§References