IOC_DIRBITS

Constant IOC_DIRBITS 

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