Function vmm_sys_util::ioctl::ioctl_with_mut_ptr [−][src]
pub unsafe fn ioctl_with_mut_ptr<F: AsRawFd, T>(
fd: &F,
req: c_ulong,
arg: *mut T
) -> c_int
Run an ioctl
with a mutable raw pointer.
Arguments
fd
: an open file descriptor corresponding to the device on which to call the ioctl.req
: a device-dependent request code.arg
: a mutable raw pointer passed to ioctl.
Safety
The caller should ensure to pass a valid file descriptor and have the return value checked.