STRUCT MOD_CLOCK(9)
π struct mod_clock(9) π
okay so welcome to the Kernel API Manual, bestie π«Ά this little page is all about struct mod_clock β literally just "Module clock", that's the whole NAME. cute, right? β¨
πΈ SYNOPSIS πΈ
Like, here's the whole vibe of the struct, no notes, character for character:
struct mod_clock {
struct rzv2h_cpg_priv *priv;
unsigned int mstop_data;
struct clk_hw hw;
bool no_pm;
u8 on_index;
u8 on_bit;
s8 mon_index;
u8 mon_bit;
s8 ext_clk_mux_index;
};
no cap, that's it. now let's meet the cast π
π Members π
privβ the CPG private data. it's giving "everything you need to know lives in here" energy πmstop_dataβ the mstop data that relates to the module clock. mstop things, module clock things, you get it π¦hwβ the handle between the common interfaces and the hardware-specific ones. literally the middleman, the main character connecting both worlds πno_pmβ a flag that says PM is not supported. so if this is set, don't come asking about power management, bestie πon_indexβ the register offset. a simpleu8, living its best life βon_bitβ the ON/MON bit. yes, both. one field, two jobs, iconic π₯mon_indexβ the monitor register offset. note it's ans8this time, not au8β the way that type changes πmon_bitβ the monitor bit. we love au8πext_clk_mux_indexβ the mux index for the external clock source, or-1if it's internal. so-1is the "nah, it's internal" signal, and that's exactly why it's ans8π§
β¨ SEE ALSO β¨
go look at the kernel file ./drivers/clk/renesas/rzv2h-cpg.c struct, and also these absolute legends:
rzv2h_pll_dsi_info(9)struct rzv2h_cpg_priv(9)struct ddiv_clk(9)struct rzv2h_ff_mod_status_clk(9)struct rzv2h_plldsi_div_clk(9)struct rzv2h_plldsi_mux_clk(9)struct rzv2h_cpg_pd(9)
iykyk π
ok that's the whole page, no crumbs left behind, everything preserved fr fr π
and that's a wrap, bestie! this one comes to you from ./drivers/clk/renesas and it's dated October 2026 β slay, periodt ππ
π¦ 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