alarmtimer_fired(9)
π alarmtimer_fired β the Kernel API Manual moment π
okay bestie so you've stumbled into the alarmtimer_fired(9) manual page and honestly? it's giving "small function, big responsibilities" energy. this is the kernel API manual, and this lil cutie is the callback that handles an alarm hrtimer being fired. let's get into it π
β¨ NAME β¨
alarmtimer_fired β literally handles the alarm hrtimer being fired. that's it, that's the job, and she does it well π«Ά
πΈ SYNOPSIS πΈ
enum hrtimer_restart alarmtimer_fired(struct hrtimer *timer);
π ARGUMENTS π
timerβ pointer to thehrtimerbeing run. yes queen, that's the one you're working with β¨
π¦ DESCRIPTION π¦
so here's the vibe: when an alarm timer fires, this function runs through the timerqueue to see which alarms expired, and then runs those. that's the main character moment π₯
and if there are more alarm timers queued up for the future? no worries, bestie β we set the hrtimer to fire when the next future alarm timer expires. lowkey genius scheduling behaviour, ngl π
π SEE ALSO π
- the kernel file
./kernel/time/alarmtimer.c struct alarm_base(9)alarmtimer_get_rtcdev(9)alarmtimer_enqueue(9)alarmtimer_dequeue(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)alarm_timer_nsleep(9)alarmtimer_init(9)
like, that's the whole alarmtimer friend group and they're all iconic in their own way π
that's the whole page bestie β much love from ./kernel/time, dated October 2026, and this was alarmtimer_fired(9) signing off π§ββοΈβ¨ slay responsibly π
π¦ 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