STRUCT CLK_FIXED_FACTOR(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct clk_fixed_factor(9) ๐Ÿ’…

okay bestie, welcome to the Kernel API Manual page for struct clk_fixed_factor โ€” it's a whole vibe, let's get into it ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

struct clk_fixed_factor โ€” a clock that's literally just a fixed multiplier and divider, no cap ๐Ÿ’–


โœจ SYNOPSIS โœจ

struct clk_fixed_factor {
    struct clk_hw   hw;
    unsigned int    mult;
    unsigned int    div;
    unsigned long   acc;
    unsigned int    flags;
 };

๐ŸŽ€ Members ๐ŸŽ€

  • hw โ€” the handle between the common interfaces and the hardware-specific ones, yep that's the whole job ๐Ÿฆ‹
  • mult โ€” the multiplier. it multiplies. iconic behavior honestly โœจ
  • div โ€” the divider. it divides. balance ๐Ÿ’…
  • acc โ€” fixed accuracy, in ppb (that's parts per billion, iykyk) โญ
  • flags โ€” flags that modify the behavior ๐Ÿ‘‘

๐Ÿ”ฅ Description ๐Ÿ”ฅ

So this is a clock with a fixed multiplier and divider โ€” like, the numbers are baked in, fr fr. The output frequency is the parent clock rate divided by div and multiplied by mult. That's it, that's the math ๐Ÿงฎ๐Ÿ’–

It implements .recalc_rate, .set_rate, .determine_rate and .recalc_accuracy โ€” yes queen, all four ๐Ÿ‘‘

๐ŸŒˆ Flags ๐ŸŒˆ

  • CLK_FIXED_FACTOR_FIXED_ACCURACY โ€” uses the value in acc instead of the parent clk accuracy. so like, your accuracy, your rules ๐Ÿ’…

๐Ÿ’œ SEE ALSO ๐Ÿ’œ

Kernel file ./include/linux/clk-provider.h โ€” and the clk framework crew, all of them, in order, no skips ๐Ÿ™ˆ:


aaaand that's the page, bestie ๐ŸŽ€ mwah ๐Ÿ’‹ โ€” this lil writeup lives in ./include/linux under the Kernel API Manual, dated October 2026, and it's titled (you guessed it) struct clk_fixed_factor(9). go forth and clock responsibly ๐Ÿงšโ€โ™€๏ธ๐Ÿ’–

๐Ÿ“ฆ where this page comes from