STRUCT CPG_MSSR_PUB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cpg_mssr_pub(9) β€” the Kernel API Manual, but make it bestie-friendly

okay so quick vibe check first: this is a page straight out of the Kernel API Manual (section 9, iykyk) and it's all about struct cpg_mssr_pub β€” the little data bundle that gets shared with device-specific clk registration code. that's it, that's the whole personality. let's get into it πŸŽ€


✨ NAME ✨

struct cpg_mssr_pub β€” the data that gets shared with device-specific clk registration code 🫢

like, it's literally the handoff struct. it holds the stuff the device-specific clk registration code needs, and it's public so everyone can see it. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct cpg_mssr_pub {
    void __iomem *base0;
    void __iomem *base1;
    struct raw_notifier_head notifiers;
    spinlock_t rmw_lock;
    struct clk **clks;
 };

look at her. five fields. flawless. ✨ (yes, there's a space before that closing brace in the original and i'm keeping it, character for character, because we do not edit the source. periodt.)


🌸 Members 🌸

okay so here's the cast of characters, field by field:

  • base0 β€” the CPG/MSSR register block base0 address πŸ“
  • base1 β€” the CPG/MSSR register block base1 address πŸ“ (yes, there's a second one, she's got range)
  • notifiers β€” a notifier chain whose whole job is to save/restore clock state for system resume 😴➑️πŸ”₯
  • rmw_lock β€” protects RMW register accesses πŸ”’ (read-modify-write is not a group project, one at a time pls)
  • clks β€” pointer to clocks β°πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/clk/renesas/renesas-cpg-mssr.h β€” go read the header bestie, it's right there

ngl, this one's short but she ate. every field matters, no filler, main character energy only πŸ’…

and that's the page!! 🌈 sign-off time: this little beauty lives in ./drivers/clk/renesas, dated October 2026, and it's filed under struct cpg_mssr_pub(9). go forth and register those clocks, bestie πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from