pub const unsafe fn ioctl_write<Device, Arg, Result>(
request: ulong,
) -> IoctlReqWrite<Device, Arg, Result>
Expand description
Constructs a new write-only IoctlReq
with a fixed request code and
an argument type that maps directly to the data the kernel expects
to receive a pointer to.
Safety: Callers must ensure that the given request
is valid, that
type Arg
describes what this request expects to get a pointer to, and
that it isn’t possible for any value of that type to cause the kernel
to violate memory safety. In particular, the kernel must not modify
the given memory, because the safe caller will provide a shared reference.