STRUCT RPMHPD(9)
π¦ struct rpmhpd(9) β the Kernel API Manual, bestie edition π¦
okay so this is the Kernel API Manual page for struct rpmhpd, and it's literally the top level RPMh power domain resource data structure. no cap, that's the whole gig. let's get into it π
β¨ NAME β¨
struct rpmhpd β the top level RPMh power domain resource data structure. yes bestie, capital-T Top Level. she's the blueprint π
πΈ SYNOPSIS πΈ
struct rpmhpd {
struct device *dev;
struct generic_pm_domain pd;
struct generic_pm_domain *parent;
struct rpmhpd *peer;
const bool active_only;
unsigned int corner;
unsigned int active_corner;
unsigned int enable_corner;
u32 level[RPMH_ARC_MAX_LEVELS];
size_t level_count;
bool enabled;
const char *res_name;
u32 addr;
bool state_synced;
};
look at her. iconic. every field accounted for, nothing extra, nothing missing π
π₯ Members π₯
devβ the rpmh power domain controller device. the main character device, the one everything answers to β¨pdβ thegeneric_pm_domainthat corresponds to the power domain. her genpd glow-up πparentβ thegeneric_pm_domainthat corresponds to the parent's power domain. she's got lineage, periodt πpeerβ a peer power domain, in case Active only Voting is supported. like, she's got a buddy in the same situation π«Άactive_onlyβTrueif it represents an Active only peer. that's the whole vibe check on this one β active only, no sleeping π΄π«cornerβ current corner. literally just where she's at rn βactive_cornerβ current active corner. same energy, but the active one πenable_cornerβ lowest non-zero corner. not zero, bestie β the lowEST non-zero πlevelβ an array of level (vlvl) to corner (hlvl) mappings derived from cmd-db. tiny translation table, huge responsibility πlevel_countβ number of levels supported by the power domain. max being16(0-15). so like, count your levels but don't get carried away πenabledβtrueif the power domain is enabled. simple as. on or off, no in-between πΈres_nameβ resource name used for cmd-db lookup. this is what you go looking with πaddrβ resource address as looped up using resource name from cmd-db. no invented addresses here, she's derived πstate_syncedβ indicator thatsync_statehas been invoked for the rpmhpd resource. basically a "yes we've synced" lil flag π§
fr fr, that's all 14 members. none skipped, none merged, none "cleaned up". we keep every single one π
π SEE ALSO π
- Kernel file
./drivers/pmdomain/qcom/rpmhpd.cβ go read the source, iykyk π
aaaand that's the page!! no notes, 10/10, ate and left no crumbs π₯
cute lil sign-off for you: this one came from ./drivers/pmdomain/qcom, dated October 2026, and she's officially struct rpmhpd(9). mwah ππ
π¦ 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