macro_rules! ioctl_ioc_nr {
($name:ident, $dir:expr, $ty:expr, $nr:expr, $size:expr) => { ... };
($name:ident, $dir:expr, $ty:expr, $nr:expr, $size:expr, $($v:ident),+) => { ... };
}
Expand description
Declare a function that returns an ioctl number.
use vmm_sys_util::ioctl::_IOC_NONE;
const KVMIO: c_uint = 0xAE;
ioctl_ioc_nr!(KVM_CREATE_VM, _IOC_NONE, KVMIO, 0x01, 0);