CLK NOTIFIER CALLBACK TYPES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… clk notifier callback types(9) πŸ’…

ok so this is from the Kernel API Manual bestie, and it's literally all about the three callback types your clk notifier can get hit with πŸŽ€ buckle up, it's short but it MATTERS.


🌸 PRE_RATE_CHANGE 🌸

okay so PRE_RATE_CHANGE gets called immediately before the clk rate is changed β€” it's basically the heads-up text before the situation actually goes down, telling you the rate change is gonna proceed fr fr. πŸ¦‹

bestie listen: drivers must immediately terminate any operations that will be affected by the rate change. no cap, immediately. 😭

Callbacks may either return NOTIFY_DONE, NOTIFY_OK, NOTIFY_STOP or NOTIFY_BAD.


πŸ’€ ABORT_RATE_CHANGE πŸ’€

so ABORT_RATE_CHANGE gets called if the rate change failed for some reason after PRE_RATE_CHANGE happened. in that case, all registered notifiers on the clk will be called with ABORT_RATE_CHANGE β€” like a group chat broadcast of bad news, everyone gets it πŸ™ˆ

Callbacks must always return NOTIFY_DONE or NOTIFY_OK. that's the whole vibe check, no other returns allowed πŸ’…


✨ POST_RATE_CHANGE ✨

and then POST_RATE_CHANGE gets called after the clk rate change has successfully completed β€” the celebratory confetti moment πŸŽ€πŸŒˆ

Callbacks must always return NOTIFY_DONE or NOTIFY_OK. same deal. periodt. πŸ‘‘


🫢 SEE ALSO 🫢

Kernel file ./include/linux/clk.h plus a whole roster of icons, so let's go down the list bestie:


that's the whole page babes, ily, go forth and notifier responsibly πŸ’œ

sign-off szn: this one lives in ./include/linux, dated October 2026, and it's clk notifier callback types(9) β€” catch you on the next manpage bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from