clockevents_program_event(9)
β¨ clockevents_program_event β¨
okay so bestie, welcome to the Kernel API Manual π you're literally about to read the page for clockevents_program_event(9) and honestly? it's giving "small function, big responsibility." let's get into it π
πΈ NAME πΈ
clockevents_program_event β reprogram the clock event device, no cap β°
π¦ SYNOPSIS π¦
int clockevents_program_event (struct clock_event_device *dev , ktime_t
expires , bool force );
likeβ¦ look at her. three args, one int return, main character energy fr fr π
π ARGUMENTS π
devβ the device you're programming π οΈ this is the clock event device in question, she's the one getting the glow-upexpiresβ the absolute expiry time, and it's on the monotonic clock β±οΈ absolute, not relative, don't get it twistedforceβ ifexpirescan't actually be set, this bad boy tells the function to program the minimum delay instead π like, "we can't do your time, so here's the earliest we can do"
π DESCRIPTION π
so here's the vibe check: the function returns 0 on success β¨ and returns -ETIME when the event is in the past π yeahβ¦ if your expiry time already happened, that's a no from her. -ETIME, periodt.
π SEE ALSO π
if you're obsessed (and you should be π«Ά), go peek at the kernel file ./kernel/time/clockevents.c and also these iconic siblings:
clockevent_delta2ns(9)clockevents_switch_state(9)clockevents_shutdown(9)clockevents_tick_resume(9)clockevents_increase_min_delta(9)clockevents_program_min_delta(9)clockevents_program_min_delta(9)β yes bestie she's listed twice, that's not me being messy, that's literally how it is ππclockevents_register_device(9)clockevents_config_and_register(9)clockevents_update_freq(9)clockevents_exchange_device(9)clockevents_suspend(9)clockevents_resume(9)tick_offline_cpu(9)
okay that's the whole page, you ate that π
lowkey a cute little sign-off: this one lives in./kernel/timeand it's dated October 2026 β and the page itself isclockevents_program_event(9), iykyk πβ¨π
π¦ 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