STRUCT CLK_DYN_RCG(9)
π struct clk_dyn_rcg(9) β the Kernel API Manual, bestie edition π
okay so picture this: it's a page from the Kernel API Manual and it's literally all about struct clk_dyn_rcg. say it with me β root clock generator with glitch free mux. yes queen, glitch free. no messy transitions, no drama, the mux just switches and everything stays flawless. π
β¨
β¨ NAME β¨
struct clk_dyn_rcg β root clock generator with glitch free mux π°οΈπ¦
like, it's a root clock generator, and the mux? glitch free. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
struct clk_dyn_rcg {
u32 ns_reg[2];
u32 md_reg[2];
u32 bank_reg;
u8 mux_sel_bit;
struct mn mn[2];
struct pre_div p[2];
struct src_sel s[2];
const struct freq_tbl *freq_tbl;
struct clk_regmap clkr;
};
look at her. iconic struct. every field accounted for, nothing skipped, we respect the layout fr fr π«Ά
π Members π
okay bestie, here's the member-by-member breakdown, and yes I'm gonna give each one its moment:
ns_regβ theNS0andNS1register π two of them, banked, living their best life.md_regβ theMD0andMD1register β¨ same deal, a whole pair.bank_regβ the register you XORmux_sel_bitinto to switch the glitch free mux π this is lowkey the main character of the switching situation.mux_sel_bitβ the bit you XOR in to switch the glitch free mux π tiny but powerful, honestly.mnβ the mn counter, and it's banked π[2]of them, one per bank, as one does.sβ the source selector, also banked π[2], matching energy.freq_tblβ the frequency table π where the frequencies are, bestie.clkrβ the regmap clock handle π₯ the actual handle for the clock, slay.
ngl,p(thestruct pre_div p[2]) is sitting right there in the struct too β the manual's member list doesn't say anything about it, so I'm not gonna invent lore. we simply acknowledge her presence π«‘
π¦ SEE ALSO π¦
go read these next, iykyk:
- Kernel file
./drivers/clk/qcom/clk-rcg.h struct mn(9)struct pre_div(9)struct src_sel(9)struct clk_rcg(9)struct clk_rcg2(9)
aaaand that's the page!! π this cutie lives in ./drivers/clk/qcom and the date on it is October 2026 β so yeah, she's from the future, obviously, main character energy only. mwah, go forth and switch those muxes glitch-free, 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