alarm_init(9)
π
alarm_init(9) π
okay bestie, welcome to the Kernel API Manual β this is the alarm_init(9) page, and it's literally the setup moment for an alarm struct. short, sweet, iconic. β¨
πΈ NAME πΈ
alarm_init β initialize an alarm structure π«Ά
β¨ SYNOPSIS β¨
void alarm_init (struct alarm *alarm , enum alarmtimer_type type , void
(*function)(struct alarm *, ktime_t) );
π ARGUMENTS π
alarmβ ptr to the alarm to be initialized π like, the struct you're setting up, bestie.typeβ the type of the alarm, aka its whole category vibe π¦.functionβ the callback that is run when the alarm fires π₯ yes, that's the main-character callback.
π¦ SEE ALSO π¦
okay so the kernel file is ./kernel/time/alarmtimer.c, and these are all the linked manual pages β the whole squad, fr fr:
struct alarm_base(9)alarmtimer_get_rtcdev(9)alarmtimer_enqueue(9)alarmtimer_dequeue(9)alarmtimer_fired(9)alarmtimer_suspend(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)
mwah π β source/version slot: ./kernel/time, date: October 2026, and this was your alarm_init(9) girlie signing off πβ¨
π¦ 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