Function sys_pipe

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

sys_pipe - Create a pipe pair

Creates a unidirectional pipe with read and write ends.

Arguments:

  • pipefd: Pointer to an array of 2 integers where file descriptors will be stored
    • pipefd[0] will contain the read end file descriptor
    • pipefd[1] will contain the write end file descriptor

Returns:

  • 0 on success
  • usize::MAX on error