macro_rules! ioctl {
(bad $name:ident with $nr:expr) => { ... };
(bad read $name:ident with $nr:expr; $ty:ty) => { ... };
(bad write $name:ident with $nr:expr; $ty:ty) => { ... };
(none $name:ident with $ioty:expr, $nr:expr) => { ... };
(try none $name:ident with $ioty:expr, $nr:expr) => { ... };
(arg $name:ident with $ioty:expr, $nr:expr) => { ... };
(read $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(try read $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(try read0 $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(write $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(try write $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(readwrite $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(try readwrite $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(read buf $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(write buf $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
(readwrite buf $name:ident with $ioty:expr, $nr:expr; $ty:ty) => { ... };
}
Expand description
Declare a wrapper function around an ioctl.