/external/crosvm/sys_util/src/ |
D | descriptor.rs | 36 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()
|
D | eventfd.rs | 50 event_handle: unsafe { SafeDescriptor::from_raw_descriptor(ret) }, in new() 158 event_handle: SafeDescriptor::from_raw_descriptor(fd), in from_raw_fd()
|
D | descriptor_reflection.rs | 384 .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/ |
D | panic_hook.rs | 41 File::from_raw_descriptor(fds[0]), in redirect_stderr() 42 File::from_raw_descriptor(old_stderr), in redirect_stderr()
|
D | linux.rs | 497 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/ |
D | shm.rs | 55 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()
|
D | timer.rs | 75 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self { in from_raw_descriptor() method
|
D | event.rs | 51 unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self { in from_raw_descriptor() method
|
D | tube.rs | 95 SafeDescriptor::from_raw_descriptor(v) in recv()
|
/external/crosvm/net_util/src/ |
D | lib.rs | 177 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/ |
D | minigbm.rs | 227 let dmabuf = unsafe { File::from_raw_descriptor(fd) }; in export()
|
/external/crosvm/hypervisor/src/kvm/ |
D | mod.rs | 108 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/ |
D | virgl_renderer.rs | 271 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/ |
D | mod.rs | 191 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/ |
D | udmabuf.rs | 165 let os_handle = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in create_udmabuf()
|
/external/crosvm/vm_control/src/ |
D | client.rs | 103 unsafe { File::from_raw_descriptor(raw_descriptor_from_path(&dev_path)?) } in do_usb_attach()
|
D | lib.rs | 430 SafeDescriptor::from_raw_descriptor( in execute()
|
/external/crosvm/devices/src/virtio/fs/ |
D | passthrough.rs | 526 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/ |
D | lib.rs | 112 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/ |
D | wl.rs | 817 .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/ |
D | vfio.rs | 311 Ok(unsafe { File::from_raw_descriptor(ret) }) in get_device()
|
/external/crosvm/devices/src/virtio/snd/vios_backend/ |
D | shm_vios.rs | 136 SafeDescriptor::from_raw_descriptor(fd) in try_new()
|