STRUCT CLK_FRAC(9)
β¨ 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β theclk_hwfor the fractional divider clock. it's literally the clock's main character energy πregβ register address π that's where the vibes liveshiftβ the divider bit shift πͺ it's giving "where do the bits start"widthβ the divider bit width π how many bits we're working with, periodtbusyβ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms