Function move_into_thread_name_spaces

Source
pub fn move_into_thread_name_spaces(
    fd: BorrowedFd<'_>,
    allowed_types: ThreadNameSpaceType,
) -> Result<()>
Available on crate feature thread 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