ioc

Function ioc 

Source
pub const fn ioc(
    dir: IoctlId,
    type: IoctlId,
    nr: IoctlId,
    size: IoctlId,
) -> IoctlId
Expand description

Create an ioctl(2) identifier from a direction value, type identifier, call identifier, and size value.

Note that the order of the parameters does not match their shift values. This matches the definition of the _IOC() macro from the C headers.

Reference: include/uapi/asm-generic/ioctl.h