Home
last modified time | relevance | path

Searched refs:IoctlNr (Results 1 – 7 of 7) sorted by relevance

/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
30 nr: IoctlNr, in ioctl_with_mut_ref() argument
43 nr: IoctlNr, in ioctl_with_ptr() argument
52 nr: IoctlNr, in ioctl_with_mut_ptr() argument
/external/crosvm/sys_util/src/
Dioctl.rs21 | ($size << $crate::ioctl::_IOC_SIZESHIFT)) as $crate::IoctlNr
30 pub const fn $name() -> $crate::IoctlNr {
36 pub const fn $name($($v: ::std::os::raw::c_uint),+) -> $crate::IoctlNr {
147 pub type IoctlNr = c_int; typedef
149 pub type IoctlNr = c_ulong; typedef
152 pub unsafe fn ioctl<F: AsRawFd>(fd: &F, nr: IoctlNr) -> c_int { in ioctl()
157 pub unsafe fn ioctl_with_val<F: AsRawFd>(fd: &F, nr: IoctlNr, arg: c_ulong) -> c_int { in ioctl_with_val() argument
162 pub unsafe fn ioctl_with_ref<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: &T) -> c_int { in ioctl_with_ref() argument
167 pub unsafe fn ioctl_with_mut_ref<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: &mut T) -> c_int { in ioctl_with_mut_ref() argument
172 pub unsafe fn ioctl_with_ptr<F: AsRawFd, T>(fd: &F, nr: IoctlNr, arg: *const T) -> c_int { in ioctl_with_ptr() argument
[all …]
/external/crosvm/net_util/src/
Dlib.rs21 FromRawDescriptor, IoctlNr, RawDescriptor,
330 ioctl_with_mut_ref(&sock, net_sys::sockios::SIOCGIFADDR as IoctlNr, &mut ifreq) in ip_addr()
351 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFADDR as IoctlNr, &ifreq) }; in set_ip_addr()
367 net_sys::sockios::SIOCGIFNETMASK as IoctlNr, in netmask()
390 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFNETMASK as IoctlNr, &ifreq) }; in set_netmask()
406 net_sys::sockios::SIOCGIFHWADDR as IoctlNr, in mac_address()
434 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFHWADDR as IoctlNr, &ifreq) }; in set_mac_address()
462 unsafe { ioctl_with_ref(&sock, net_sys::sockios::SIOCSIFFLAGS as IoctlNr, &ifreq) }; in enable()
/external/crosvm/usb_util/src/
Derror.rs5 use base::IoctlNr;
19 IoctlFailed(IoctlNr, base::Error),
Ddevice.rs10 use base::{handle_eintr_errno, AsRawDescriptor, IoctlNr, RawDescriptor};
71 unsafe fn ioctl(&self, nr: IoctlNr) -> Result<i32> { in ioctl()
79 unsafe fn ioctl_with_ref<T>(&self, nr: IoctlNr, arg: &T) -> Result<i32> { in ioctl_with_ref() argument
87 unsafe fn ioctl_with_mut_ref<T>(&self, nr: IoctlNr, arg: &mut T) -> Result<i32> { in ioctl_with_mut_ref() argument
95 unsafe fn ioctl_with_mut_ptr<T>(&self, nr: IoctlNr, arg: *mut T) -> Result<i32> { in ioctl_with_mut_ptr() argument
/external/crosvm/hypervisor/src/kvm/
Dx86_64.rs5 use base::IoctlNr;
29 kind: IoctlNr, in get_cpuid_with_initial_capacity() argument
63 pub fn get_cpuid(&self, kind: IoctlNr) -> Result<CpuId> { in get_cpuid()
/external/crosvm/kvm/src/
Dlib.rs37 ioctl_with_val, pagesize, signal, unblock_signal, warn, Error, Event, IoctlNr, MappedRegion,
139 fn get_cpuid(&self, kind: IoctlNr) -> Result<CpuId> { in get_cpuid()