clockevents_exchange_device(9)
π clockevents_exchange_device(9) β like, the Kernel API Manual, but make it make sense
okay so bestie, welcome to the clockevents_exchange_device page π this one's a function from the Kernel API Manual and it is honestly so iconic of it to just say exactly what it means. Let's get into it.
β¨ NAME β¨
clockevents_exchange_device β release and request clock devices π
like... it hands one clock device its walking papers and slides a new one into the group chat. that's the whole vibe.
πΈ SYNOPSIS πΈ
void clockevents_exchange_device (struct clock_event_device *old ,
struct clock_event_device *new );
no return value, no drama, just vibes and two pointers π«Ά
π¦ ARGUMENTS π¦
oldβ the device you're releasing, bestie. and yes, it can beNULLβ no cap, that's allowed πnewβ the device you're requesting. and would you look at that, this one can beNULLtoo π
π DESCRIPTION π
so the tea is: this gets called from various tick functions β and listen β it's called with clockevents_lock held and interrupts disabled π₯
that's not a cute little detail, that's the whole situation. lock held, interrupts off, that's the context, periodt. π
π SEE ALSO π
the kernel file lives at ./kernel/time/clockevents.c and honestly it's giving main character energy β go read it, iykyk πβ¨
and here's the whole friend group, keep every single one of them:
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_update_freq(9)clockevents_suspend(9)clockevents_resume(9)tick_offline_cpu(9)
π and yes, clockevents_program_min_delta(9) really is listed twice. not me editing the original β that's literally how it came to me, so it stays. fr fr.
πΈ ok that's the page!! ./kernel/time, October 2026, and the star of the show clockevents_exchange_device(9) β slay, ate, no notes πβ¨ππ¦
π¦ 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