STRUCT CLK_FIXED_RATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct clk_fixed_rate(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” we're talking about struct clk_fixed_rate, aka the fixed-rate clock, and honestly? it's giving "I never change and I'm proud of it." a whole icon.


✨ SYNOPSIS ✨

like, here's the shape of it, fr fr:

struct clk_fixed_rate {
    struct clk_hw hw;
    unsigned long   fixed_rate;
    unsigned long   fixed_accuracy;
    unsigned long   flags;
 };

that's the whole vibe. four fields. no notes. πŸ’…


πŸŽ€ Members πŸŽ€

  • hw β€” the handle between the common interfaces and the hardware-specific ones. like the go-between, the mutual friend, the one who translates. 🫢
  • fixed_rate β€” the constant frequency of the clock. it's fixed. it's a rate. it does not switch up on you, not ever. πŸ‘‘
  • fixed_accuracy β€” the constant accuracy of the clock in ppb (parts per billion). yes, per billion, we're being precise out here. ✨
  • flags β€” hardware specific flags. the little extra personality settings, iykyk. 🌸

πŸ’œ Description πŸ’œ

so the flags section, bestie β€” there is literally one flag and it's kind of a big deal:

  • CLK_FIXED_RATE_PARENT_ACCURACY β€” use the accuracy of the parent clk instead of what's set in fixed_accuracy. so like, you could hardcode your own accuracy, but this flag says "nah, let me borrow my parent's." respectful. humble. love that for it. πŸ¦‹
ngl, that's the entire description. one flag. iconic minimalism. πŸŽ€

🌈 SEE ALSO 🌈

okay this list is long long, so buckle in β€” it's the kernel file ./include/linux/clk-provider.h, the clk framework, and then a whole friend group of structs and functions:

like I said. a lot of friends. go read them, they're all slaying in their own lanes. πŸ’€πŸ”₯


and that's the page, bestie! this little beauty lives in ./include/linux and the version/date situation is October 2026 β€” so yeah, future-coded of it. mwah, go fix your clocks. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from