timer_pending(9)
timer_pending π
okay so this is the timer_pending(9) page from the Kernel API Manual, and we're folding the manual name in right here near the top because we're cute like that π
πΈ NAME πΈ
timer_pending β is a timer pending? π
β¨ SYNOPSIS β¨
int timer_pending (const struct timer_list * timer );
π«Ά ARGUMENTS π«Ά
timerβ the timer in question, bestie. that's the one we're checking π
π« DESCRIPTION π«
timer_pending will tell you whether a given timer is currently pending or not. very demure, very direct β¨
Callers must ensure serialization wrt. other operations done to this timer, eg. interrupt contexts, or other CPUs on SMP. no cap, that's the serious part β you gotta make sure things are serialized around this timer with respect to those other operations, like interrupt contexts or other CPUs on SMP π₯
π RETURN π
1 if the timer is pending, 0 if not. literally just those two values, bestie π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/timer.h timer_setup(9)
okay bye bestie π«Ά the footer energy is source/version ./include/linux, date October 2026, page timer_pending(9) β mwah π
π¦ 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