clockevents_update_freq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’…):


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