STRUCT CLK_RCG(9)
π NAME π
struct clk_rcg β the root clock generator, and yes bestie it's exactly as main-character as it sounds π
okay so real quick before we dive in: this page is struct clk_rcg(9) from the Kernel API Manual, that's the title + the manual section, and it's all about this one struct. let's get into it π«Ά
β¨ SYNOPSIS β¨
struct clk_rcg {
u32 ns_reg;
u32 md_reg;
struct mn mn;
struct pre_div p;
struct src_sel s;
const struct freq_tbl *freq_tbl;
struct clk_regmap clkr;
};
no cap, that's the whole shape of it. now let's do a vibe check on every single member, one by one, because we do not skip π
π Members π
ns_regβ the NS register. that's it, that's the whole gig β¨md_regβ the MD register. iconic, separate register, separate slay πmnβ themncounter πpβ the pre divider. lowkey doing the dividing before the dividing πΈsβ the source selector. it picks where the source comes from, fr fr π¦freq_tblβ the frequency table. pointer toconst struct freq_tbl, and this is where the frequencies live πclkrβ the regmap clock handle. the actual clock-y bit π
ngl the member list is short but every one of them is carrying the whole struct on its back, no notes π
π SEE ALSO π
- the Kernel file
./drivers/clk/qcom/clk-rcg.hβ go read it, iykyk π struct mn(9)struct pre_div(9)struct src_sel(9)struct clk_dyn_rcg(9)struct clk_rcg2(9)
like literally the whole friend group right there π§
and that's the page!! π this came to you from ./drivers/clk/qcom, dated October 2026, and it's struct clk_rcg(9) obvi π go be iconic with your root clock generator, bestie πβ
π¦ 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