STRUCT QCOM_CLK_REF_DESC(9)
π NAME
struct qcom_clk_ref_desc β the descriptor for a clkref_en gate clock β¨ like it's literally the blueprint bestie, the little info card that tells the kernel everything it needs about your clock π
β¨ SYNOPSIS
struct qcom_clk_ref_desc {
const char *name;
u32 offset;
const char * const *regulator_names;
unsigned int num_regulators;
};
That's the whole struct, no cap. Four fields, all iconic, all doing their job π
π«Ά Members
nameβ the clock name that gets exposed to the common clock framework π this is the name the rest of the world sees, so pick a good one bestieoffsetβ theclkref_enregister offset, measured from the block base π like where the register lives relative to home baseregulator_namesβ optional supply names that get enabled while the clock is being prepared π optional, so if you don't have any, you're still valid, we love that for younum_regulatorsβ the number of entries inregulator_namesπ’ gotta keep the count honest or the vibe check fails
ngl thenum_regulatorsfield only makes sense if it matches what's actually inregulator_namesβ that's just how counting works, periodt π
π SEE ALSO
- Kernel file
./include/linux/clk/qcom.h struct qcom_clk_ref(9)
πΈ ok that's the whole page, you ate that fr fr β this one's straight out of ./include/linux/clk, dated October 2026, and it's a struct qcom_clk_ref_desc(9) moment, mwah ππ«Ά
π¦ 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