Function base::sys::linux::safe_descriptor_from_cmdline_fd
source · pub fn safe_descriptor_from_cmdline_fd(fd: &RawFd) -> Result<SafeDescriptor>
Expand description
Check FD is not opened by crosvm and returns a FD that is freshly DUPFD_CLOEXEC’s. A SafeDescriptor is created from the duplicated fd. It does not take ownership of fd passed by argument.