STRUCT MSTP_CLOCK_GROUP(9)
π 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 theSMSTPCRenergy. β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 toSMSTPCR. do not skip the lock, bestie, that's the whole point. πwidth_8bitβ aboolthat 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
- 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