STRUCT CLK_RPMH(9)
π 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 isstruct bcm_db(9)β don't go confusing her with our girlstruct 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
- 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