Function ioctl

Source
pub unsafe fn ioctl<'a, T, F: AsRef<Fd<'a>>>(
    fd: F,
    cmd: u32,
    arg: *mut T,
) -> Result<(), Error>
Expand description

Send an I/O control command to a stream device.

ยงSafety

  • arg must be appropriate for the given command and device of the file descriptor.
  • *mut T must be a thin pointer.