STRUCT CLK_HW_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 one u32… 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