alarm_timer_wait_running(9)
π alarm_timer_wait_running(9)
okay so this is a page straight out of the Kernel API Manual, and bestie, it's a short one but it's lowkey important β it's about waiting for a timer callback to finish its little moment. let's get into it β¨
πΈ NAME πΈ
alarm_timer_wait_running β the Posix timer callback that waits for a timer π
β¨ SYNOPSIS β¨
void alarm_timer_wait_running (struct k_itimer *timr );
π¦ ARGUMENTS π¦
timrβ a pointer to theposixtimerdata struct. that's the whole vibe, that's the argument, periodt π
π DESCRIPTION π
okay so picture this: the core code is cancelling a timer, and it detects that the callback is currently running β main character behavior, honestly. when that happens, this function gets called. π₯
here's the tea: timr is unlocked, and the rcu read lock is held, and the whole point of that is to prevent it from being freed. no cap, that's the entire safety mechanism. π«Ά
π§ SEE ALSO π§
all the besties in the same family π β found in the kernel file ./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_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 thing, bestie β short, sweet, and doing exactly one job π
source: ./kernel/time Β· version: Kernel API Manual Β· October 2026 β mwah, see u in the next manpage ππ
π¦ 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