CLK FRAMEWORK FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 clk framework flags(9) 🌸

okay bestie, so this is a page from the Kernel API Manual and it's literally just the flag collection for the clock framework β€” like the group chat of struct clk and everyone's pinned messages. πŸŽ€


✨ NAME ✨

clk framework flags β€” the shared flag vocabulary used all over the common struct clk πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

These are the flags that get used across common struct clk. And listen β€” these flags should only affect the top-level framework. That's the rule, no cap. 🫢

If you've got custom flags for dealing with hardware specifics? Those belong in struct clk_foo, bestie. Not here. Different lane, different vibe. ✨

So here's the whole lineup, and honestly? Every single one of them is kind of iconic:

  • CLK_SET_RATE_GATE β€” must be gated across rate change πŸ”’
  • CLK_SET_PARENT_GATE β€” must be gated across re-parent
  • CLK_SET_RATE_PARENT β€” propagate rate change up one level ⬆️
  • CLK_IGNORE_UNUSED β€” do not gate even if unused πŸ™ˆ
  • CLK_GET_RATE_NOCACHE β€” do not use the cached clk rate
  • CLK_SET_RATE_NO_REPARENT β€” don't re-parent on rate change 🚫
  • CLK_GET_ACCURACY_NOCACHE β€” do not use the cached clk accuracy
  • CLK_RECALC_NEW_RATES β€” recalc rates after notifications πŸ”
  • CLK_SET_RATE_UNGATE β€” clock needs to run to set rate πŸƒβ€β™€οΈ
  • CLK_IS_CRITICAL β€” do not gate, ever πŸ’€ (like, ever ever)
  • CLK_OPS_PARENT_ENABLE β€” parents need enable during gate/ungate, set rate and re-parent πŸ‘‘
  • CLK_DUTY_CYCLE_PARENT β€” duty cycle call may be forwarded to the parent clock πŸ“¨
periodt. those are all of them, and yes, CLK_IS_CRITICAL really does mean do not gate, ever. don't test it, bestie. πŸ”₯

🌈 SEE ALSO 🌈

Kernel file ./include/linux/clk-provider.h β€” and honestly the whole extended friend group:


πŸ’– that's the whole page, bestie πŸ’–

this one lives in ./include/linux, it's from October 2026, and it's part of the Kernel API Manual β€” go read it before you touch a clock, ily, bye πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from