Function sys_stream_read

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

System call for reading from a KernelObject with StreamOps capability

§Arguments

  • handle: Handle to the KernelObject
  • buffer_ptr: Pointer to the buffer to read into
  • count: Number of bytes to read

§Returns

  • On success: number of bytes read
  • On error: usize::MAX