pub unsafe fn ioctl(fd: int, request: ulong, arg: impl AsRawV) -> Result<int>
Expand description
Arbitrary requests for file descriptors representing devices.
This system call is particularly unsafe, because the final argument
gets interpreted in very different ways depending on the value of
the request
argument. Callers must take care to ensure that request
is
of an appropriate type and value for the selected request
.
Set arg
to ()
(empty tuple) for requests whose argument is specified
as “void” in the documentation.