Expand description
Time-related system calls for Linux ABI on RISC-V 64
This module implements Linux time system calls for the Scarlet kernel, providing compatibility with Linux userspace programs that need time information.
Structsยง
- Itimer
Spec ๐ - Linux itimerspec structure used by timer_settime/gettime.
- Posix
Timer - Public representation of a POSIX timer stored in the Linux ABI state.
- Posix
Timer ๐Handler - Posix
Timer Shared - Linux POSIX timer shared state guarded by a spin mutex for interior mutability.
- Posix
Timer State - Mutable state stored for each POSIX timer.
- Time
Spec - Linux timespec structure (matches Linux userspace)
Constantsยง
- CLOCK_
BOOTTIME - CLOCK_
MONOTONIC - CLOCK_
MONOTONIC_ COARSE - CLOCK_
MONOTONIC_ RAW - CLOCK_
PROCESS_ CPUTIME_ ID - CLOCK_
REALTIME - Linux clock IDs (subset of commonly used ones)
- CLOCK_
REALTIME_ COARSE - CLOCK_
THREAD_ CPUTIME_ ID - NSEC_
PER_ ๐SEC_ I64 - NSEC_
PER_ ๐SEC_ U64 - SIGEV_
NONE - SIGEV_
SIGNAL - Linux sigevent notification values (subset).
- SIGEV_
THREAD - SIGEV_
THREAD_ ID - TIMER_
ABSTIME ๐
Functionsยง
- is_
supported_ ๐clock - ns_
to_ ๐timespec - sys_
clock_ getres - Linux sys_clock_getres implementation (stub)
- sys_
clock_ gettime - sys_clock_gettime - Get time from specified clock
- sys_
nanosleep - sys_nanosleep - Sleep for the specified time (Linux ABI)
- sys_
timer_ create - Linux
timer_createimplementation. - sys_
timer_ delete - Linux
timer_deleteimplementation. - sys_
timer_ getoverrun - Linux
timer_getoverrunimplementation (simple stub returning 0). - sys_
timer_ gettime - Linux
timer_gettimeimplementation. - sys_
timer_ settime - Linux
timer_settimeimplementation. - timespec_
to_ ๐ns