alarm_timer_nsleep(9)
π alarm_timer_nsleep(9) β the alarmtimer sleep situation β¨
okay so bestie, welcome to section 9 of the Kernel API Manual π this one's about alarm_timer_nsleep, and it's literally the little function that holds down the "sleep until my alarm goes off" vibes. no cap. β°
πΈ NAME πΈ
alarm_timer_nsleep β alarmtimer nanosleep π«Ά
β¨ SYNOPSIS β¨
int alarm_timer_nsleep (const clockid_t which_clock , int flags ,
const struct timespec64 *tsreq );
yeah she's three args deep and serving function signature π
π¦ ARGUMENTS π¦
which_clockβ theclockidπ like, which clock are we working with, babeflagsβ this one decidesabstimeor relative β it's giving "am I sleeping until a specific moment, or just for a while?"tsreqβ the requested sleep time, either absolute or relative (abs or rel, iykyk) π
π DESCRIPTION π
so basically, this is the handler for clock_nanosleep calls that come in against _ALARM clockids π₯ that's it, that's the whole job. she handles the nap requests for the alarm clocks. iconic. π
π SEE ALSO π
the whole family tree, bestie, and there's a lot of them β plus the kernel file they all live in: ./kernel/time/alarmtimer.c π§
struct alarm_base(9)alarmtimer_get_rtcdev(9)alarmtimer_enqueue(9)alarmtimer_dequeue(9)alarmtimer_fired(9)alarmtimer_suspend(9)alarm_init(9)alarm_start_timer(9)alarm_try_to_cancel(9)alarm_cancel(9)clock2alarm(9)alarm_handle_timer(9)alarm_timer_rearm(9)alarm_timer_forward(9)alarm_timer_remaining(9)alarm_timer_try_to_cancel(9)alarm_timer_wait_running(9)alarm_timer_arm(9)alarm_clock_getres(9)alarm_clock_get_timespec(9)alarm_clock_get_ktime(9)alarm_timer_create(9)alarmtimer_nsleep_wakeup(9)alarmtimer_do_nsleep(9)alarm_timer_nsleep_restart(9)alarmtimer_init(9)
and that's the whole page, bestie π«Ά no crumbs left, every single reference accounted for β¨
anyway, this lil beauty ships out of ./kernel/time and it's dated October 2026 β so like, future vibes but make it kernel ππ go read the rest of section 9, mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms