Searched refs:raw_descriptor_from_path (Results 1 – 2 of 2) sorted by relevance
63 fn raw_descriptor_from_path(path: &Path) -> ModifyUsbResult<RawDescriptor> { in raw_descriptor_from_path() function103 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&dev_path)?) } in do_usb_attach()
497 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&disk.path)?) } in create_block_device()1247 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&disk.path)?) } in create_pmem_device()1757 fn raw_descriptor_from_path(path: &Path) -> Result<RawDescriptor> { in raw_descriptor_from_path() function1777 unsafe { Ok(UnixStream::from_raw_fd(raw_descriptor_from_path(self)?)) } in into_unix_stream()