sys_prctl

Function sys_prctl 

Source
pub fn sys_prctl(_abi: &mut LinuxRiscv64Abi, trapframe: &mut Trapframe) -> usize
Expand description

Linux prctl system call (syscall 167)

Operations on a process or thread. This is a stub implementation that returns success for common operations.

Arguments:

  • arg0: option (PR_* operation)
  • arg1-arg4: operation-specific arguments

Returns:

  • 0 on success
  • usize::MAX (Linux -1) for unsupported operations