macro_rules! ioctl_iowr_nr {
($name:ident, $ty:expr, $nr:expr, $size:ty) => { ... };
($name:ident, $ty:expr, $nr:expr, $size:ty, $($v:ident),+) => { ... };
}
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);