pub fn sys_clock_gettime(
_abi: &mut LinuxRiscv64Abi,
trapframe: &mut Trapframe,
) -> usizeExpand description
sys_clock_gettime - Get time from specified clock
Arguments:
- a0 (x10): clock_id - which clock to read from
- a1 (x11): timespec - pointer to timespec structure to fill
Returns:
- 0 on success
- -EINVAL (-22) for invalid clock_id
- -EFAULT (-14) for invalid timespec pointer