Home
last modified time | relevance | path

Searched refs:from_raw_descriptor (Results 1 – 22 of 22) sorted by relevance

/external/crosvm/sys_util/src/
Ddescriptor.rs36 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self; in from_raw_descriptor() method
108 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self { in from_raw_descriptor() method
153 unsafe { SafeDescriptor::from_raw_descriptor(f.into_raw_descriptor()) } in from()
201 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self {
249 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self { in from_raw_descriptor() method
266 let descriptor = unsafe { SafeDescriptor::from_raw_descriptor(ret) }; in clone_equality()
279 let another = unsafe { SafeDescriptor::from_raw_descriptor(ret) }; in clone_equality()
Deventfd.rs50 event_handle: unsafe { SafeDescriptor::from_raw_descriptor(ret) }, in new()
158 event_handle: SafeDescriptor::from_raw_descriptor(fd), in from_raw_fd()
Ddescriptor_reflection.rs384 .map(|rd| unsafe { T::from_raw_descriptor(rd) }) in deserialize()
444 .map(|&v| Some(unsafe { SafeDescriptor::from_raw_descriptor(v) })) in deserialize()
/external/crosvm/src/
Dpanic_hook.rs41 File::from_raw_descriptor(fds[0]), in redirect_stderr()
42 File::from_raw_descriptor(old_stderr), in redirect_stderr()
Dlinux.rs497 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&disk.path)?) } in create_block_device()
775 Tap::from_raw_descriptor( in create_tap_net_device()
1247 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&disk.path)?) } in create_pmem_device()
/external/crosvm/base/src/
Dshm.rs55 let file = unsafe { File::from_raw_descriptor(descriptor.into_raw_descriptor()) }; in from_safe_descriptor()
93 unsafe { SafeDescriptor::from_raw_descriptor(self.into_raw_descriptor()) } in into()
Dtimer.rs75 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self { in from_raw_descriptor() method
Devent.rs51 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self { in from_raw_descriptor() method
Dtube.rs95 SafeDescriptor::from_raw_descriptor(v) in recv()
/external/crosvm/net_util/src/
Dlib.rs177 pub unsafe fn from_raw_descriptor(fd: RawDescriptor) -> Result<Tap> { in from_raw_descriptor() method
178 let tap_file = File::from_raw_descriptor(fd); in from_raw_descriptor()
209 let tuntap = unsafe { File::from_raw_descriptor(fd) }; in create_tap_with_ifreq()
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/
Dminigbm.rs227 let dmabuf = unsafe { File::from_raw_descriptor(fd) }; in export()
/external/crosvm/hypervisor/src/kvm/
Dmod.rs108 kvm: unsafe { SafeDescriptor::from_raw_descriptor(ret) }, in new_with_path()
174 let vm_descriptor = unsafe { SafeDescriptor::from_raw_descriptor(ret) }; in new()
210 let vcpu = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in create_vcpu()
547 Ok(unsafe { SafeDescriptor::from_raw_descriptor(device.fd as i32) }) in create_device()
1370 vm.register_irqfd(4, &evtfd1, Some(unsafe { &Event::from_raw_descriptor(-1) })) in irqfd_resample()
/external/crosvm/rutabaga_gfx/src/
Dvirgl_renderer.rs271 let dmabuf = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in export_blob()
544 let fence = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in export_fence()
/external/crosvm/src/plugin/
Dmod.rs191 UnixDatagram::from_raw_descriptor(fds[0]), in new_seqpacket_pair()
192 UnixDatagram::from_raw_descriptor(fds[1]), in new_seqpacket_pair()
680 Tap::from_raw_descriptor(validate_raw_descriptor(tap_fd).map_err(Error::ValidateTapFd)?) in run_config()
/external/crosvm/devices/src/virtio/gpu/
Dudmabuf.rs165 let os_handle = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in create_udmabuf()
/external/crosvm/vm_control/src/
Dclient.rs103 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&dev_path)?) } in do_usb_attach()
Dlib.rs430 SafeDescriptor::from_raw_descriptor( in execute()
/external/crosvm/devices/src/virtio/fs/
Dpassthrough.rs526 let proc = unsafe { File::from_raw_descriptor(raw_descriptor) }; in new()
607 Ok(unsafe { File::from_raw_descriptor(raw_descriptor) }) in open_fd()
713 let f = unsafe { File::from_raw_descriptor(fd) }; in do_lookup()
1066 let f = unsafe { File::from_raw_descriptor(raw_descriptor) }; in init()
1303 let tmpfile = unsafe { File::from_raw_descriptor(fd) }; in chromeos_tmpfile()
1339 let file = unsafe { File::from_raw_descriptor(fd) }; in create()
/external/crosvm/kvm/src/
Dlib.rs112 kvm: unsafe { File::from_raw_descriptor(ret) }, in new_with_path()
280 let vm_file = unsafe { File::from_raw_descriptor(ret) }; in new()
969 let vcpu = unsafe { File::from_raw_descriptor(vcpu_fd) }; in new()
1958 vm.register_irqfd_resample(&evtfd1, unsafe { &Event::from_raw_descriptor(-1) }, 4) in irqfd_resample()
/external/crosvm/devices/src/virtio/
Dwl.rs817 .map(|&descriptor| unsafe { File::from_raw_descriptor(descriptor) }), in recv()
1214 SafeDescriptor::from_raw_descriptor(file.into_raw_descriptor()) in send()
1225 let file = unsafe { File::from_raw_descriptor(*descriptor) }; in send()
/external/crosvm/devices/src/
Dvfio.rs311 Ok(unsafe { File::from_raw_descriptor(ret) }) in get_device()
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_vios.rs136 SafeDescriptor::from_raw_descriptor(fd) in try_new()