add_timer_on(9)
π add_timer_on β like, the Kernel API Manual page, bestie
okay so real talk, this one is from the Kernel API Manual, section 9, and it's called add_timer_on. Buckle up, it's short but she's important.
β¨ NAME β¨
add_timer_on β start a timer on a particular CPU π
π SYNOPSIS π
void add_timer_on (struct timer_list *timer , int cpu );
literally two args, no drama, we love a minimal signature π«Ά
πΈ ARGUMENTS πΈ
timerβ the timer you wanna start, babes. that's the one.cpuβ the CPU you want it started on. yes, that CPU. pick one. π―
π¦ DESCRIPTION π¦
Okay so it's the same as add_timer, except β and this is the whole vibe β it starts the timer on the given CPU and the TIMER_PINNED flag gets set. Pinned, like, it's committed to that CPU. main character energy, no wandering off. π
But heads up π«Ά when the timer shouldn't be a pinned timer in the next round, you should use add_timer_global instead, because that one unsets the TIMER_PINNED flag. so like, don't leave it pinned forever unless you meant to, yk? π
For further details, go peek at add_timer β she's got the lore.
π₯ SEE ALSO π₯
okay the full squad, no gatekeeping:
- 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_local(9)add_timer_global(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)
π reminder:TIMER_PINNEDgets set by this one. if you don't want that in the next round, reach foradd_timer_global(9). iykyk π
and that's the whole page, bestie! π this cutie lives in ./kernel/time and it was dated October 2026 β so yeah, future icon behavior πβ¨ 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