Function ioctl_const_arg

Source
pub const unsafe fn ioctl_const_arg<Device, Result, const ARG: int>(
    request: ulong,
) -> IoctlReqConstArg<Device, Result, ARG>
where *mut Result: AsRawV, Device: IoDevice, Result: FromIoctlResult<int>,
Expand description

Constructs a new read-only IoctlReq with a fixed request code that passes a constant integer to ioctl and returns its result in the system call return value.

Safety: Callers must ensure that the given request is valid.