handle_ioctl

Function handle_ioctl 

Source
pub fn handle_ioctl(
    request: u32,
    arg: usize,
    kernel_object: &KernelObject,
) -> Result<Option<usize>, ()>
Expand description

Handle Linux TTY-related ioctls for a given kernel object representing an open file descriptor. Returns Ok(Some(ret)) if handled, Ok(None) if not applicable, and Err(()) on error (mapped to -1 by caller).