clockevents...and_register(9)
β¨ clockevents_config_and_register(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a kernel function, and yes it's giving main character energy β it configures and registers a clock event device in one go. two jobs, one function, we love an efficient icon π
πΈ NAME πΈ
clockevents_config_and_register β configure and register a clock event device β¨
π¦ SYNOPSIS π¦
void clockevents_config_and_register (struct clock_event_device *dev ,
u32 freq , unsigned long min_delta , unsigned long max_delta );
like, it returns void. nothing comes back. it just does the thing π
no cap.
π ARGUMENTS π
devβ the device to register. this is your little guy, thestruct clock_event_device *that's about to get configured and yeeted into the registry π«Άfreqβ the clock frequency.u32, that's the number bestie, the actual clock frequency β¨min_deltaβ the minimum clock ticks to program in oneshot mode. the floor, the "no less than this" of it all πmax_deltaβ the maximum clock ticks to program in oneshot mode. the ceiling, the "okay that's enough" π
π DESCRIPTION π
so here's the lowkey important bit: min_delta and max_delta can be 0 for devices which do not support oneshot mode. that's it, that's the whole description β and honestly? iconic. short and honest, we stan π
heads up babe:min_deltaandmax_deltaboth being0is only for devices that don't support oneshot mode. don't just set them to0for funsies, iykyk π
π₯ SEE ALSO π₯
the whole friend group, in order, fr fr:
- Kernel file
./kernel/time/clockevents.c clockevent_delta2ns(9)clockevents_switch_state(9)clockevents_shutdown(9)clockevents_tick_resume(9)clockevents_increase_min_delta(9)clockevents_program_min_delta(9)β yes it's listed twice in the original, and I'm keeping it twice, because we do not edit the source material π slay for consistency thoclockevents_program_min_delta(9)clockevents_program_event(9)clockevents_register_device(9)clockevents_update_freq(9)clockevents_exchange_device(9)clockevents_suspend(9)clockevents_resume(9)tick_offline_cpu(9)
and that's the whole page bestie, go configure some clock events π§π
this little gem lives in ./kernel/time and the version of the page you're reading is dated October 2026. mwah, ily, bye ππ
π¦ 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