STRUCT MSTP_CLOCK_GROUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mstp_clock_group(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for struct mstp_clock_group β€” the MSTP gating clocks group situation, and she is lowkey iconic. no cap, this is the struct you need to understand if you're messing with these clocks. 🫢✨


🌸 NAME 🌸

struct mstp_clock_group β€” MSTP gating clocks group. literally the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

here's the struct in all its exact glory, bestie β€” copy-paste energy only:

       struct mstp_clock_group {
           struct clk_onecell_data data;
           void __iomem *smstpcr;
           void __iomem *mstpsr;
           spinlock_t lock;
           bool width_8bit;
           struct clk *clks[];
        };

πŸŽ€ Members πŸŽ€

okay so let's do the member-by-member vibe check, because every field matters fr fr:

  • data β€” this is the clock specifier translation for clocks in this group. it's giving "translation layer, but make it clock." πŸ’–
  • smstpcr β€” the module stop control register. yes bestie, that's the SMSTPCR energy. ⭐
  • mstpsr β€” the module stop status register, and it's optional. so not every group is gonna have this one, and that's fine. πŸ¦‹
  • lock β€” this spinlock protects writes to SMSTPCR. do not skip the lock, bestie, that's the whole point. πŸ’…
  • width_8bit β€” a bool that says the registers are 8-bit, not 32-bit. important distinction, no cap. πŸ”₯
  • clks β€” the clocks in this group. they live here. periodt. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

go check these out too, iykyk:

  • Kernel file ./drivers/clk/renesas/clk-mstp.c
  • struct mstp_clock(9)

okay bestie byeee πŸ’–βœ¨ and remember: the source/version is ./drivers/clk/renesas, the date is October 2026, and this iconic page is struct mstp_clock_group(9) πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from