Macro vmm_sys_util::ioctl_iowr_nr
source · macro_rules! ioctl_iowr_nr { ($name:ident, $ty:expr, $nr:expr, $size:ty) => { ... }; ($name:ident, $ty:expr, $nr:expr, $size:ty, $($v:ident),+) => { ... }; }
Available on Linux or Android only.
Expand description
Declare an ioctl that reads and writes data.
const VHOST: ::std::os::raw::c_uint = 0xAF;
ioctl_iowr_nr!(VHOST_GET_VRING_BASE, VHOST, 0x12, ::std::os::raw::c_int);