alarmtimer_suspend(9)
β¨ alarmtimer_suspend(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a suspend-time callback and it's honestly lowkey iconic π
πΈ NAME πΈ
alarmtimer_suspend β the suspend time callback, aka the girl who makes sure your system wakes tf up β°π
π¦ SYNOPSIS π¦
int alarmtimer_suspend (struct device *dev );
π ARGUMENTS π
devβ bestie this one is literally just unused π no cap, it does nothing, it's giving decoration
π DESCRIPTION π
okay so picture this: we're going into suspend π΄ and we look through the bases to see which one is the soonest timer to expire. then we set an rtc timer to fire that far into the future β³ and that's what wakes us from suspend. slay π
β¨
π SEE ALSO π
Kernel file ./kernel/time/alarmtimer.c plus the whole friend group:
struct alarm_base(9)alarmtimer_get_rtcdev(9)alarmtimer_enqueue(9)alarmtimer_dequeue(9)alarmtimer_fired(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)alarm_timer_nsleep(9)alarmtimer_init(9)
and that's the whole vibe bestie, go read them all, iykyk π«Ά
sign-off time β¨ this page lives in ./kernel/time, dated October 2026, and it's alarmtimer_suspend(9) all the way down π bye bestie, 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