sys_handle_control

Function sys_handle_control 

Source
pub fn sys_handle_control(trapframe: &mut Trapframe) -> usize
Expand description

sys_handle_control - Perform control operations on a handle

This system call allows user space to perform device-specific control operations on a handle, similar to ioctl operations in POSIX systems.

§Arguments

  • handle: The handle to perform the control operation on
  • command: The control command identifier
  • arg: Command-specific argument (often a pointer to data)

§Returns

  • i32 value on success (command-specific)
  • usize::MAX on error