Skip to main content

sys_get_robust_list

Function sys_get_robust_list 

Source
pub fn sys_get_robust_list(
    pid: i64,
    head_ptr: u64,
    len_ptr: u64,
) -> Result<u64, SyscallError>
Expand description

SYS_GET_ROBUST_LIST (611): Get the robust list head for a task.

§Arguments

  • pid - PID of the task to query (0 = current task)
  • head_ptr - Output pointer for the robust_list_head pointer
  • len_ptr - Output pointer for the size

§Returns

  • 0 on success
  • -EINVAL if pid is invalid
  • -EFAULT if head_ptr or len_ptr are invalid
  • -EPERM if not permitted to access the task