STRUCT CLK_FRAC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct clk_frac(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's about struct clk_frac, the mxs fractional divider clock πŸŽ€. yes it's niche. yes it's iconic. let's get into it πŸ’…


🌸 NAME 🌸

struct clk_frac β€” mxs fractional divider clock πŸ•°οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct clk_frac {
    struct clk_hw hw;
    void __iomem *reg;
    u8 shift;
    u8 width;
    u8 busy;
 };

like, that's the whole struct, no cap. five members, zero notes πŸ’€


πŸ’– Members πŸ’–

  • hw β€” the clk_hw for the fractional divider clock. it's literally the clock's main character energy πŸ‘‘
  • reg β€” register address πŸ“ that's where the vibes live
  • shift β€” the divider bit shift πŸͺ„ it's giving "where do the bits start"
  • width β€” the divider bit width πŸ“ how many bits we're working with, periodt
  • busy β€” busy bit shift 🚦 this is the one that says "hold up, still working" β€” lowkey important

🌈 Description 🌈

so the tea β˜•: this clock is an adjustable fractional divider with a busy bit to wait when the divider is adjusted. that's it, that's the vibe β€” you tweak the divider, and that busy bit makes you wait until it's done. no rushing her, she's on her own timeline πŸ˜ŒπŸ’…


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/clk/mxs/clk-frac.c β€” go read the source bestie, it ate πŸ’–

that's the whole page, iykyk 🫢

source/version: ./drivers/clk/mxs Β· dated October 2026 β€” mwah, thanks for reading, stan the fractional divider clock for me πŸŒΈβœ¨πŸ’œ

πŸ“¦ where this page comes from