Expand description
Macros and functions for working with
ioctl
.
Macros§
- ioctl_
io_ nr - Declare an ioctl that transfers no data.
- ioctl_
ioc_ nr - Declare a function that returns an ioctl number.
- ioctl_
ior_ nr - Declare an ioctl that reads data.
- ioctl_
iow_ nr - Declare an ioctl that writes data.
- ioctl_
iowr_ nr - Declare an ioctl that reads and writes data.
Constants§
- IOCSIZE_
MASK - IOCSIZE_
SHIFT - IOC_IN
- IOC_
INOUT - IOC_OUT
- _IOC_
DIRBITS - _IOC_
DIRMASK - _IOC_
DIRSHIFT - _IOC_
NONE - _IOC_
NRBITS - _IOC_
NRMASK - _IOC_
NRSHIFT - _IOC_
READ - _IOC_
SIZEBITS - _IOC_
SIZEMASK - _IOC_
SIZESHIFT - _IOC_
TYPEBITS - _IOC_
TYPEMASK - _IOC_
TYPESHIFT - _IOC_
WRITE
Functions§
- ioctl⚠
- Run an
ioctl
with no arguments. - ioctl_
expr - Function to calculate icotl number. Mimic of _IOC
- ioctl_
with_ ⚠mut_ ptr - Run an
ioctl
with a mutable raw pointer. - ioctl_
with_ ⚠mut_ ref - Run an
ioctl
with a mutable reference. - ioctl_
with_ ⚠ptr - Run an
ioctl
with a raw pointer. - ioctl_
with_ ⚠ref - Run an
ioctl
with an immutable reference. - ioctl_
with_ ⚠val - Run an
ioctl
with a single value argument.