Lines Matching refs:ioctl
1 /// The datatype used for the ioctl number
15 use crate::sys::ioctl::ioctl_num_type;
36 | (($len as $crate::sys::ioctl::ioctl_num_type
37 & $crate::sys::ioctl::IOCPARM_MASK)
39 | (($group as $crate::sys::ioctl::ioctl_num_type) << 8)
40 | ($num as $crate::sys::ioctl::ioctl_num_type)
44 /// Generate an ioctl request code for a command that passes no data.
46 /// This is equivalent to the `_IO()` macro exposed by the C ioctl API.
48 /// You should only use this macro directly if the `ioctl` you're working
62 ioc!($crate::sys::ioctl::VOID, $g, $n, 0)
66 /// Generate an ioctl request code for a command that passes an integer
68 /// This is equivalent to the `_IOWINT()` macro exposed by the C ioctl API.
70 /// You should only use this macro directly if the `ioctl` you're working
76 $crate::sys::ioctl::VOID,
84 /// Generate an ioctl request code for a command that reads.
86 /// This is equivalent to the `_IOR()` macro exposed by the C ioctl API.
88 /// You should only use this macro directly if the `ioctl` you're working
97 ioc!($crate::sys::ioctl::OUT, $g, $n, $len)
101 /// Generate an ioctl request code for a command that writes.
103 /// This is equivalent to the `_IOW()` macro exposed by the C ioctl API.
105 /// You should only use this macro directly if the `ioctl` you're working
114 ioc!($crate::sys::ioctl::IN, $g, $n, $len)
118 /// Generate an ioctl request code for a command that reads and writes.
120 /// This is equivalent to the `_IOWR()` macro exposed by the C ioctl API.
122 /// You should only use this macro directly if the `ioctl` you're working
127 ioc!($crate::sys::ioctl::INOUT, $g, $n, $len)