pub fn sys_nanosleep(
_abi: &mut LinuxRiscv64Abi,
trapframe: &mut Trapframe,
) -> usizeExpand description
sys_nanosleep - Sleep for the specified time (Linux ABI)
Arguments:
- a0 (x10): rqtp - pointer to requested sleep time (struct __kernel_timespec __user *)
- a1 (x11): rmtp - pointer to remaining time (struct __kernel_timespec __user *)
Returns:
- 0 on success
- -EFAULT (-14) for invalid pointer
- -EINTR (-4) if interrupted by signal (not implemented, always 0)