devela::_dep::rustix::thread

Function move_into_link_name_space

pub fn move_into_link_name_space(
    fd: BorrowedFd<'_>,
    allowed_type: Option<LinkNameSpaceType>,
) -> Result<(), Errno> 
Available on crate feature dep_rustix only.
Expand description

Reassociate the calling thread with the namespace associated with link referred to by fd.

fd must refer to one of the magic links in a /proc/[pid]/ns/ directory, or a bind mount to such a link.

§References