Home
last modified time | relevance | path

Searched refs:SafeDescriptor (Results 1 – 16 of 16) sorted by relevance

/external/crosvm/sys_util/src/
Ddescriptor.rs55 pub struct SafeDescriptor { struct
62 impl PartialEq for SafeDescriptor { argument
87 impl Drop for SafeDescriptor { implementation
93 impl AsRawDescriptor for SafeDescriptor { implementation
99 impl IntoRawDescriptor for SafeDescriptor { implementation
107 impl FromRawDescriptor for SafeDescriptor { implementation
109 SafeDescriptor { descriptor } in from_raw_descriptor()
113 impl AsRawFd for SafeDescriptor { implementation
119 impl TryFrom<&dyn AsRawFd> for SafeDescriptor { implementation
123 Ok(SafeDescriptor { in try_from()
[all …]
Ddescriptor_reflection.rs62 use crate::{RawDescriptor, SafeDescriptor};
180 static DESCRIPTOR_SRC: RefCell<Option<Vec<Option<SafeDescriptor>>>> = Default::default();
187 fn set_descriptor_src(descriptors: Vec<Option<SafeDescriptor>>) -> Result<(), &'static str> { in set_descriptor_src()
203 fn take_descriptor_src() -> Result<Vec<Option<SafeDescriptor>>, &'static str> { in take_descriptor_src()
213 fn take_descriptor(index: usize) -> Result<SafeDescriptor, &'static str> { in take_descriptor() argument
231 pub fn deserialize_descriptor<'de, D>(de: D) -> std::result::Result<SafeDescriptor, D::Error> in deserialize_descriptor() argument
298 descriptors: &mut Vec<Option<SafeDescriptor>>, in deserialize_with_descriptors() argument
430 FromRawDescriptor, RawDescriptor, SafeDescriptor, SerializeDescriptors,
444 .map(|&v| Some(unsafe { SafeDescriptor::from_raw_descriptor(v) })) in deserialize()
Deventfd.rs16 RawDescriptor, Result, SafeDescriptor,
26 event_handle: SafeDescriptor,
50 event_handle: unsafe { SafeDescriptor::from_raw_descriptor(ret) }, in new()
158 event_handle: SafeDescriptor::from_raw_descriptor(fd), in from_raw_fd()
/external/crosvm/base/src/
Dshm.rs7 SafeDescriptor,
54 fn from_safe_descriptor(descriptor: SafeDescriptor) -> Result<SharedMemory> { in from_safe_descriptor()
90 impl Into<SafeDescriptor> for SharedMemory {
91 fn into(self) -> SafeDescriptor { in into() argument
93 unsafe { SafeDescriptor::from_raw_descriptor(self.into_raw_descriptor()) } in into()
Dtube.rs11 use crate::{net::UnixSeqpacket, FromRawDescriptor, SafeDescriptor, ScmSocket, UnsyncMarker};
95 SafeDescriptor::from_raw_descriptor(v) in recv()
/external/crosvm/devices/src/irqchip/kvm/
Daarch64.rs8 use base::{errno_result, ioctl_with_ref, Result, SafeDescriptor};
32 vgic: SafeDescriptor,
/external/crosvm/vm_control/src/
Dlib.rs31 MemoryMappingBuilderUnix, MmapError, Protection, Result, SafeDescriptor, SharedMemory, Tube,
266 RegisterFdAtPciBarOffset(Alloc, SafeDescriptor, usize, u64),
273 descriptor: SafeDescriptor,
291 descriptor: SafeDescriptor,
430 SafeDescriptor::from_raw_descriptor( in execute()
475 descriptor: SafeDescriptor,
802 fd: SafeDescriptor,
1104 descriptor: SafeDescriptor,
/external/crosvm/hypervisor/src/kvm/
Dmod.rs36 Protection, RawDescriptor, Result, SafeDescriptor,
53 descriptor: &SafeDescriptor, in set_user_memory_region() argument
93 kvm: SafeDescriptor,
108 kvm: unsafe { SafeDescriptor::from_raw_descriptor(ret) }, in new_with_path()
157 vm: SafeDescriptor,
174 let vm_descriptor = unsafe { SafeDescriptor::from_raw_descriptor(ret) }; in new()
210 let vcpu = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in create_vcpu()
525 fn create_device(&self, kind: DeviceKind) -> Result<SafeDescriptor> { in create_device() argument
547 Ok(unsafe { SafeDescriptor::from_raw_descriptor(device.fd as i32) }) in create_device()
646 vm: SafeDescriptor,
[all …]
/external/crosvm/devices/src/virtio/gpu/
Dudmabuf.rs15 SafeDescriptor,
165 let os_handle = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in create_udmabuf()
/external/crosvm/hypervisor/src/
Dlib.rs18 use base::{Event, MappedRegion, Protection, Result, SafeDescriptor};
88 fn create_device(&self, kind: DeviceKind) -> Result<SafeDescriptor>; in create_device() argument
/external/crosvm/devices/src/virtio/fs/
Dworker.rs11 use base::{error, Event, PollToken, SafeDescriptor, Tube, WaitContext};
93 let fd = SafeDescriptor::try_from(fd)?; in map()
/external/crosvm/rutabaga_gfx/src/
Dvirgl_renderer.rs21 FromRawDescriptor, SafeDescriptor,
271 let dmabuf = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in export_blob()
544 let fence = unsafe { SafeDescriptor::from_raw_descriptor(fd) }; in export_fence()
Drutabaga_utils.rs14 use base::{Error as SysError, ExternalMappingError, SafeDescriptor};
489 pub os_handle: SafeDescriptor,
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_vios.rs10 MemoryMapping, MemoryMappingBuilder, MmapError, PollToken, SafeDescriptor, ScmSocket,
132 let mut safe_fds: Vec<SafeDescriptor> = fds in try_new()
136 SafeDescriptor::from_raw_descriptor(fd) in try_new()
153 safe_fds: &mut Vec<SafeDescriptor>, in try_new() argument
/external/crosvm/devices/src/
Dvfio.rs20 AsRawDescriptor, Error, Event, FromRawDescriptor, RawDescriptor, SafeDescriptor,
85 kvm_vfio_dev: Option<SafeDescriptor>,
275 fn kvm_device_add_group(&self, kvm_vfio_file: &SafeDescriptor) -> Result<(), VfioError> { in kvm_device_add_group()
/external/crosvm/devices/src/virtio/
Dwl.rs61 use base::{IntoRawDescriptor, SafeDescriptor};
881 signaled_fence: Option<SafeDescriptor>,
1214 SafeDescriptor::from_raw_descriptor(file.into_raw_descriptor()) in send()