Function ioctl_write_val

Source
pub const unsafe fn ioctl_write_val<Device, Arg, Result>(
    request: ulong,
) -> IoctlReqWriteVal<Device, Arg, Result>
where Arg: AsRawV, Device: IoDevice, Result: FromIoctlResult<int>,
Expand description

Constructs a new write-only IoctlReq with a fixed request code and an argument type that the data the kernel expects to recieve directly as its argument, without any pointer indirection.

Safety: Callers must ensure that the given request is valid, that type Arg describes what this request expects to get as its argument.