Function starry::syscall_imp::fs::ctl::sys_ioctl

source ·
pub(crate) fn sys_ioctl(_fd: i32, _op: usize, _argp: *mut c_void) -> i32
Expand description

The ioctl() system call manipulates the underlying device parameters of special files.

§Arguments

  • fd - The file descriptor
  • op - The request code. It is of type unsigned long in glibc and BSD, and of type int in musl and other UNIX systems.
  • argp - The argument to the request. It is a pointer to a memory location