pub const IOC_DIRBITS: usize = 2;Expand description
The number of bits used to represent the direction of the ioctl(2) call.
For Alpha (not supported by Rust), MIPS, PowerPC, and SPARC, this is 3 bits. For all other architectures, this is 2 bits.
Note that on SPARC the direction field overlaps with the size field.
References:
- Alpha:
arch/alpha/include/uapi/asm/ioctl.h - MIPS:
arch/mips/include/uapi/asm/ioctl.h - PowerPC:
arch/powerpc/include/uapi/asm/ioctl.h - SPARC:
arch/sparc/include/uapi/asm/ioctl.h - All others:
include/uapi/asm-generic/ioctl.h