timer_pending(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ¦‹


okay bye bestie 🫢 the footer energy is source/version ./include/linux, date October 2026, page timer_pending(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from