Home
last modified time | relevance | path

Searched refs:AsRawDescriptor (Results 1 – 25 of 71) sorted by relevance

123

/external/crosvm/sys_util/src/
Ddescriptor.rs28 pub trait AsRawDescriptor { interface
93 impl AsRawDescriptor for SafeDescriptor {
163 impl AsRawDescriptor for Descriptor {
188 macro_rules! AsRawDescriptor { macro
190 impl AsRawDescriptor for $name { impl
222 AsRawDescriptor!(File);
223 AsRawDescriptor!(UnlinkUnixSeqpacketListener);
226 AsRawDescriptor!(Stdin);
227 AsRawDescriptor!(Stdout);
228 AsRawDescriptor!(Stderr);
[all …]
Dsignalfd.rs15 use crate::{errno, signal, AsRawDescriptor, RawDescriptor};
137 impl AsRawDescriptor for SignalFd {
Deventfd.rs15 duration_to_timespec, errno_result, AsRawDescriptor, FromRawDescriptor, IntoRawDescriptor,
149 impl AsRawDescriptor for EventFd {
/external/crosvm/base/src/
Dioctl.rs5 use crate::{AsRawDescriptor, IoctlNr};
9 pub unsafe fn ioctl<F: AsRawDescriptor>(descriptor: &F, nr: IoctlNr) -> c_int { in ioctl()
14 pub unsafe fn ioctl_with_val(descriptor: &dyn AsRawDescriptor, nr: IoctlNr, arg: c_ulong) -> c_int { in ioctl_with_val() argument
19 pub unsafe fn ioctl_with_ref<T>(descriptor: &dyn AsRawDescriptor, nr: IoctlNr, arg: &T) -> c_int { in ioctl_with_ref() argument
29 descriptor: &dyn AsRawDescriptor, in ioctl_with_mut_ref() argument
42 descriptor: &dyn AsRawDescriptor, in ioctl_with_ptr() argument
51 descriptor: &dyn AsRawDescriptor, in ioctl_with_mut_ptr() argument
Dwait_context.rs8 use crate::{wrap_descriptor, AsRawDescriptor, RawDescriptor, Result};
73 pub fn build_with(triggers: &[(&dyn AsRawDescriptor, T)]) -> Result<WaitContext<T>> { in build_with() argument
80 pub fn add(&self, descriptor: &dyn AsRawDescriptor, token: T) -> Result<()> { in add() argument
87 descriptor: &dyn AsRawDescriptor, in add_for_event() argument
99 pub fn add_many(&self, triggers: &[(&dyn AsRawDescriptor, T)]) -> Result<()> { in add_many() argument
110 descriptor: &dyn AsRawDescriptor, in modify() argument
123 pub fn delete(&self, descriptor: &dyn AsRawDescriptor) -> Result<()> { in delete()
147 impl<T: PollToken> AsRawDescriptor for WaitContext<T> {
Dmmap.rs5 use crate::{wrap_descriptor, AsRawDescriptor, MappedRegion, MmapError, Protection, SharedMemory};
48 src: &dyn AsRawDescriptor, in read_to_memory() argument
58 dst: &dyn AsRawDescriptor, in write_from_memory() argument
77 fn from_descriptor(self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder; in from_descriptor()
81 descriptor: Option<&'a dyn AsRawDescriptor>,
92 fn from_descriptor(mut self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder { in from_descriptor()
119 self.descriptor = Some(file as &dyn AsRawDescriptor); in from_file()
127 self.descriptor = Some(shm as &dyn AsRawDescriptor); in from_shared_memory()
Dasync_types.rs5 use crate::AsRawDescriptor;
11 pub trait DescriptorIntoAsync: AsRawDescriptor {}
Dlib.rs37 pub fn wrap_descriptor(descriptor: &dyn AsRawDescriptor) -> Descriptor { in wrap_descriptor()
54 T: AsRawDescriptor,
Dtimer.rs6 AsRawDescriptor, FakeClock, FromRawDescriptor, IntoRawDescriptor, RawDescriptor, Result,
57 impl AsRawDescriptor for $timer { impl
Devent.rs13 use crate::{AsRawDescriptor, FromRawDescriptor, IntoRawDescriptor, RawDescriptor, Result};
44 impl AsRawDescriptor for Event {
Dshm.rs6 AsRawDescriptor, FromRawDescriptor, IntoRawDescriptor, MemfdSeals, RawDescriptor, Result,
78 impl AsRawDescriptor for SharedMemory {
/external/crosvm/devices/src/virtio/input/
Devent_source.rs9 use base::{warn, AsRawDescriptor, RawDescriptor};
21 pub trait EventSource: AsRawDescriptor {
51 impl<T: AsRawDescriptor> EventSourceImpl<T> {
143 T: Read + Write + AsRawDescriptor,
152 impl<T: AsRawDescriptor> AsRawDescriptor for SocketEventSource<T> {
160 T: Read + Write + AsRawDescriptor,
195 T: Read + Write + AsRawDescriptor,
204 impl<T: AsRawDescriptor> AsRawDescriptor for EvdevEventSource<T> {
212 T: Read + Write + AsRawDescriptor,
Devdev.rs19 use base::{AsRawDescriptor, Descriptor};
113 pub fn device_ids<T: AsRawDescriptor>(descriptor: &T) -> Result<virtio_input_device_ids> { in device_ids()
136 pub fn name<T: AsRawDescriptor>(descriptor: &T) -> Result<Vec<u8>> { in name()
154 pub fn serial_name<T: AsRawDescriptor>(descriptor: &T) -> Result<Vec<u8>> { in serial_name()
172 pub fn properties<T: AsRawDescriptor>(descriptor: &T) -> Result<virtio_input_bitmap> { in properties()
191 pub fn supported_events<T: AsRawDescriptor>( in supported_events()
236 pub fn abs_info<T: AsRawDescriptor>(descriptor: &T) -> BTreeMap<u16, virtio_input_absinfo> { in abs_info()
261 pub fn grab_evdev<T: AsRawDescriptor>(descriptor: &mut T) -> Result<()> { in grab_evdev()
278 pub fn ungrab_evdev<T: AsRawDescriptor>(descriptor: &mut T) -> Result<()> { in ungrab_evdev()
Dmod.rs13 use base::{error, warn, AsRawDescriptor, Event, PollToken, RawDescriptor, WaitContext};
266 fn from_evdev<T: AsRawDescriptor>(source: &T) -> Result<VirtioInputConfig> { in from_evdev()
674 T: Read + Write + AsRawDescriptor, in new_evdev()
693 T: Read + Write + AsRawDescriptor, in new_single_touch()
712 T: Read + Write + AsRawDescriptor, in new_multi_touch()
732 T: Read + Write + AsRawDescriptor, in new_trackpad()
746 T: Read + Write + AsRawDescriptor, in new_mouse()
760 T: Read + Write + AsRawDescriptor, in new_keyboard()
774 T: Read + Write + AsRawDescriptor, in new_switches()
/external/crosvm/vhost/src/
Dnet.rs13 use base::{ioctl_with_ref, AsRawDescriptor, RawDescriptor};
30 pub trait NetT<T: TapT>: Vhost + AsRawDescriptor + Send + Sized {
92 impl<T> AsRawDescriptor for Net<T> {
145 impl<T> AsRawDescriptor for FakeNet<T> {
Dvsock.rs11 use base::{ioctl_with_ref, AsRawDescriptor, RawDescriptor};
78 impl AsRawDescriptor for Vsock {
/external/crosvm/x86_64/src/
Dbzimage.rs11 use base::AsRawDescriptor;
61 F: Read + Seek + AsRawDescriptor, in load_bzimage() argument
/external/crosvm/devices/src/
Ddirect_irq.rs5 use base::{ioctl_with_ref, AsRawDescriptor, Event, RawDescriptor};
111 impl AsRawDescriptor for DirectIrq {
/external/crosvm/devices/src/utils/
Devent_loop.rs7 error, warn, wrap_descriptor, AsRawDescriptor, Descriptor, EpollContext, EpollEvents, Event,
152 descriptor: &dyn AsRawDescriptor, in add_event() argument
175 pub fn remove_event_for_fd(&self, descriptor: &dyn AsRawDescriptor) -> Result<()> { in remove_event_for_fd()
/external/crosvm/gpu_display/src/
Devent_device.rs5 use base::{AsRawDescriptor, RawDescriptor};
153 impl AsRawDescriptor for EventDevice {
Dlib.rs10 use base::{AsRawDescriptor, Error as SysError, RawDescriptor};
122 trait DisplayT: AsRawDescriptor {
328 impl AsRawDescriptor for GpuDisplay {
Dgpu_display_stub.rs10 use base::{AsRawDescriptor, Event, RawDescriptor};
227 impl AsRawDescriptor for DisplayStub {
/external/crosvm/devices/src/virtio/fs/
Dread_dir.rs10 use base::AsRawDescriptor;
31 pub fn new<D: AsRawDescriptor>(dir: &D, offset: libc::off64_t, mut buf: P) -> io::Result<Self> { in new()
Dpassthrough.rs21 AsRawDescriptor, FromRawDescriptor, RawDescriptor,
148 impl AsRawDescriptor for InodeData {
159 impl AsRawDescriptor for HandleData {
317 fn stat<F: AsRawDescriptor>(f: &F) -> io::Result<libc::stat64> { in stat()
341 fn statat<D: AsRawDescriptor>(dir: &D, name: &CStr) -> io::Result<libc::stat64> { in statat()
779 fn do_fsync<F: AsRawDescriptor>(&self, file: &F, datasync: bool) -> io::Result<()> { in do_fsync()
876 let data: Arc<dyn AsRawDescriptor> = if self.zero_message_open.load(Ordering::Relaxed) { in get_encryption_policy_ex()
901 let data: Arc<dyn AsRawDescriptor> = if self.zero_message_open.load(Ordering::Relaxed) { in get_fsxattr()
926 let data: Arc<dyn AsRawDescriptor> = if self.zero_message_open.load(Ordering::Relaxed) { in set_fsxattr()
944 let data: Arc<dyn AsRawDescriptor> = if self.zero_message_open.load(Ordering::Relaxed) { in get_flags()
[all …]
/external/crosvm/tests/
Dplugins.rs16 use base::{ioctl, AsRawDescriptor};
129 fn keep_fd_on_exec<F: AsRawDescriptor>(f: &F) { in keep_fd_on_exec()

123