pub fn ioc_dir(nr: u32) -> u8
Extracts the “direction” (read/write/none) from an encoded ioctl command.