STRUCT QCOM_CLK_REF_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 bestie
  • offset β€” the clkref_en register offset, measured from the block base πŸ“ like where the register lives relative to home base
  • regulator_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 you
  • num_regulators β€” the number of entries in regulator_names πŸ”’ gotta keep the count honest or the vibe check fails
ngl the num_regulators field only makes sense if it matches what's actually in regulator_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