Module ioctl

Source
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.