tick_program_event(9)
β¨ tick_program_event β¨
okay so like, this is a page from the Kernel API Manual, and honestly? it's giving "tiny function, huge responsibilities" π
we're talking about tick_program_event β the little guy that pokes the CPU local timer device and tells it exactly when to fire next. main character energy fr fr π₯
πΈ NAME πΈ
tick_program_event β program the CPU local timer device for the next event β°β¨
like. that's the whole vibe. it schedules the next tick. no cap.
π SYNOPSIS π
int tick_program_event (ktime_t expires , int force );
yes bestie that's the whole signature, she's short and she knows it π
π¦ ARGUMENTS π¦
expiresβ the time at which the next timer event should occur π like, the actual moment the timer's supposed to go off. that's the whole point.forceβ flag to force reprograming even if the event time hasn't changed π€ so normally ifexpiresis the same as before, the code would be like "already done, bestie, nothing to do" β but set this bad boy and it reprograms anyway. stubborn queen behavior. (yes, the original spells it "reprograming" β we respect the spelling, periodt π)
π RETURN π
0on success π slay, it worked- negative error code on failure π something went wrong, check the number
no in-between, no "maybe" β it's either a clean 0 or a negative code, iykyk π
π SEE ALSO π
the kernel file ./kernel/time/tick-oneshot.c says hi π and also go read these:
tick_resume_oneshot(9)tick_setup_oneshot(9)tick_switch_to_oneshot(9)tick_oneshot_mode_active(9)tick_init_highres(9)
all the oneshot girlies, one big happy timer family π«Άβ¨
okay that's the whole page, you ate that π
this little icon lives in ./kernel/time, it's from October 2026, and it's filed under tick_program_event(9) in the Kernel API Manual β mwah, go program a timer, bestie πππ
π¦ 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