STRUCT CLK_RPMH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct clk_rpmh(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so you've stumbled into the Kernel API Manual and you're staring at struct clk_rpmh, which is literally the individual rpmh clock data structure. it's giving "one clock's whole personality in a struct." let's get into it πŸ’…


✨ SYNOPSIS ✨

here's the whole thing, verbatim, no cap:

struct clk_rpmh {
    struct clk_hw hw;
    const char *res_name;
    u8 div;
    u32 res_addr;
    u32 res_on_val;
    u32 state;
    u32 aggr_state;
    u32 last_sent_aggr_state;
    u32 valid_state_mask;
    u32 unit;
    struct device *dev;
    struct clk_rpmh *peer;
 };

like, look at her. every field is a little vibe. let's go through them one by one 🫢


🌸 Members 🌸

  • hw β€” the handle between the common and hardware-specific interfaces. it's the bridge, the middle child, the connector. iconic.
  • res_name β€” the resource name for the rpmh clock. it's literally the clock's name tag at the function πŸŽ€
  • div β€” the clock divider used to compute the clock rate. math is happening, bestie.
  • res_addr β€” the base address of the rpmh resource within the RPMh. where it lives, fr fr.
  • res_on_val β€” the rpmh clock enable value. the "turn it on" number πŸ’–
  • state β€” the rpmh clock requested state. what we asked for.
  • aggr_state β€” the rpmh clock aggregated state. what everything added up to.
  • last_sent_aggr_state β€” the rpmh clock last aggr state sent to RPMh. like a screenshot of the last thing we sent πŸ“Έ
  • valid_state_mask β€” mask to determine the state of the rpmh clock. the vibe check for which states are even allowed.
  • unit β€” divisor to convert rate to rpmh msg in magnitudes of Khz. yes, K-h-z, the manpage said it, i'm keeping it exactly as written. no notes. πŸ‘‘
  • dev β€” device to which it is attached. the plus-one, the home base.
  • peer β€” pointer to the clock rpmh sibling. found family, literally 😭

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/clk/qcom/clk-rpmh.c
  • struct bcm_db(9)

heads up bestie: that SEE ALSO reference is struct bcm_db(9) β€” don't go confusing her with our girl struct clk_rpmh. different queens, different structs. πŸ™ˆ

and that's the whole page, slay πŸ’€βœ¨ this cutie came from ./drivers/clk/qcom, dated October 2026, and it's the struct clk_rpmh(9) entry in the Kernel API Manual β€” periodt. go read the source, ily, bye πŸ¦‹πŸ’–

πŸ“¦ where this page comes from