Function ioctl

Source
pub unsafe fn ioctl(fd: &impl AsRawFd, cmd: u32, arg: usize) -> Result<i32>
Expand description

Makes an ioctl system call on a file descriptor.

ยงSafety

This library does know know about the different ioctls. It is up to the caller to ensure that the ioctl it is making is safe.