Function rustix::thread::setns::move_into_thread_name_spaces

source ·
pub fn move_into_thread_name_spaces(
    fd: BorrowedFd<'_>,
    allowed_types: ThreadNameSpaceType,
) -> Result<()>
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