STRUCT CLK_HW_DATA(9)
β¨ struct clk_hw_data β clock hardware data β¨
okay so you're reading the Kernel API Manual (section 9, kernel internals, iykyk) and you landed on struct clk_hw_data, which is literally just the lil bundle of clock hardware data π
bestie it's a struct, it's not that deep, but let's go through it together anyway because every field ate.
πΈ SYNOPSIS πΈ
here's the shape of it, exactly as it lives in the kernel:
struct clk_hw_data {
struct clk_hw hw;
u32 conf;
u32 sconf;
struct rzg2l_cpg_priv *priv;
};
no cap, that's the whole vibe. four fields, zero drama π
π Members π
hwβ the clock hw. fr fr, that's it, that's the member π«Άconfβ clock configuration, and it's a whole trio: register offset, shift, and width. the way it packs all that in oneu32β¦ iconic π₯sconfβ clock status configuration, same trio energy: register offset, shift, width βprivβ the CPG private data structure. it's giving "backstage pass to the private data" π
π¦ SEE ALSO π¦
- Kernel file
./drivers/clk/renesas/rzg2l-cpg.cβ go read it, it's literally where this struct hangs out π struct sd_mux_hw_data(9)struct div_hw_data(9)struct rzg2l_cpg_priv(9)struct mstop(9)struct mod_clock(9)
all siblings, all besties, all worth a peek π
ngl, if you're poking at the RZ/G2L clock driver, you're gonna see this struct a lot. bookworm behavior: read the SEE ALSO list first π
and that's the page! π live from ./drivers/clk/renesas, dated October 2026, part of the Kernel API Manual β struct clk_hw_data(9) signed off, slay β¨π
π¦ 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