Skip to main content

ioctl_struct

Function ioctl_struct 

Source
pub fn ioctl_struct<T: Copy>(
    fd: RawFd,
    request: u32,
    arg: &mut T,
) -> Result<i32>
Expand description

An ioctl that reads or writes one plain structure.

The request must be one whose argument is a pointer to a T; every caller in this crate passes a request and the structure the kernel documents for it.