Function nix::sys::ioctl::op [] [src]

pub fn op(dir: IoctlDirFlags, ioctl_type: u8, nr: u8, size: usize) -> ioctl_op_t

Build an ioctl op with the provide parameters. This is a helper function for IOCTLs in the Linux kernel using the newer conventions for IOCTLs operations. Many ioctls do not use this newer convention and the constants for those should just be used as-is.

This provides the same functionality as the Linux _IOC macro.