clockevents_update_freq(9)
π clockevents_update_freq(9) β Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual page for clockevents_update_freq(9). this is the one about updating frequency and reprogramming a clock event device β main character energy, fr fr. π
π NAME π
clockevents_update_freq β update the frequency and reprogram a clock event device. slay. β¨
β¨ SYNOPSIS β¨
int clockevents_update_freq (struct clock_event_device *dev , u32 freq );
π ARGUMENTS π
devβ the device to modify. that's the one you're touching, bestie. πfreqβ the new device frequency. the fresh number, no cap. π₯
π¦ DESCRIPTION π¦
okay so what this does: it reconfigures and reprograms a clock event device in oneshot mode. literally its whole thing. β¨
β οΈ caveat, bestie: you must call this on the cpu for which the device delivers per cpu timer events. like, that part is not optional. no cap. π«Ά
if you call it for the broadcast device, the core takes care of serialization β iconic, honestly. π
it returns 0 on success, and -ETIME when the event is in the past. periodt. π
πΈ SEE ALSO πΈ
Kernel file: ./kernel/time/clockevents.c
the SEE ALSO gang, in order (and yes, clockevents_program_min_delta(9) shows up twice β i don't make the rules, i just keep every detail π
):
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)clockevents_program_event(9)clockevents_register_device(9)clockevents_config_and_register(9)clockevents_exchange_device(9)clockevents_suspend(9)clockevents_resume(9)tick_offline_cpu(9)
mwah π this cutie lives at source/path ./kernel/time, dated October 2026, and it's the clockevents_update_freq(9) page. byeee, go reprogram something responsibly π«Άβ¨
π¦ 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