add_timer_local(9)
π add_timer_local β Kernel API Manual β¨
okay so bestie, you know how add_timer exists and it's iconic? This is that, but it pins the timer to the local CPU. That's literally the whole vibe. Let me walk you through it π
β¨ NAME β¨
add_timer_local β start a timer on the local CPU π
πΈ SYNOPSIS πΈ
void add_timer_local (struct timer_list *timer );
π¦ ARGUMENTS π¦
timerβ the timer you want to start, bestie. That's it. That's the argument π
π DESCRIPTION π
So it's exactly the same as add_timer... except the timer flag TIMER_PINNED gets set. That's the whole difference. One flag. Main character behavior fr fr π
If you want the full details on what's actually going on, go readadd_timerβ this page is justadd_timerwith that pinned flag added, no cap.
π SEE ALSO π
Like, there's a whole friend group here, and honestly? Obsessed with how many of them there are π«Ά
- Kernel file
./kernel/time/timer.c struct timer_base(9)__round_jiffies_relative(9)round_jiffies(9)round_jiffies_relative(9)__round_jiffies_up_relative(9)round_jiffies_up(9)round_jiffies_up_relative(9)timer_init_key(9)mod_timer_pending(9)mod_timer(9)timer_reduce(9)add_timer(9)add_timer_global(9)add_timer_on(9)__timer_delete(9)timer_delete(9)timer_shutdown(9)__try_to_del_timer_sync(9)timer_delete_sync_try(9)__timer_delete_sync(9)timer_delete_sync(9)timer_shutdown_sync(9)fetch_next_timer_interrupt_remote(9)timer_unlock_remote_bases(9)timer_lock_remote_bases(9)timer_base_is_idle(9)timer_expire_remote(9)get_next_timer_interrupt(9)timer_base_try_to_set_idle(9)timer_clear_idle(9)__run_timers(9)
and that's the whole page, bestie!! π§ mwah π
shoutout to the ./kernel/time girlies for hosting this one, October 2026 edition, and to the Kernel API Manual itself β iconic as always ππ
π¦ 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