STRUCT CLOCKDOMAIN(9)
π NAME π
struct clockdomain β the OMAP clockdomain, bestie. that's it, that's the whole vibe β¨
oh also quick thing: this page lives in the Kernel API Manual, section 9. knew you'd want to know π«Ά
πΈ SYNOPSIS πΈ
struct clockdomain {
const char *name;
union {
const char *name;
struct powerdomain *ptr;
} pwrdm;
const u16 clktrctrl_mask;
const u8 flags;
u8 _flags;
const u8 dep_bit;
const u8 prcm_partition;
const u16 cm_inst;
const u16 clkdm_offs;
struct clkdm_dep *wkdep_srcs;
struct clkdm_dep *sleepdep_srcs;
int usecount;
int forcewake_count;
struct list_head node;
u32 context;
};
like, look at her. she's structured. she's organized. main character energy fr π
π Members π
okay so let's go through every single field one by one, no skips, no cap:
nameβ the clockdomain's name. literally what she's called πpwrdmβ the powerdomain that contains this clockdomain. it's a union, and the two arms areconst char *nameandstruct powerdomain *ptrβ yes girl, both. π¦clktrctrl_maskβ theCLKTRCTRL/AUTOSTATEfield mask in theCM_CLKSTCTRLreg π₯flagsβ clockdomain capability flags β¨_flagsβ flags for use only by internal clockdomain code. not your business, bestie πdep_bitβ bit shift of this clockdomain'sPM_WKDEP/CM_SLEEPDEPbit π§prcm_partitionβ (OMAP4 only) PRCM partition ID for this clkdm's registerscm_instβ (OMAP4 only) CM instance register offsetclkdm_offsβ (OMAP4 only) CM clockdomain register offsetwkdep_srcsβ clockdomains that can be told to wake this powerdomain up πsleepdep_srcsβ clockdomains that can be told to keep this clkdm from inactusecountβ usecount tracking πforcewake_countβ usecount for forcing the domain active βnodeβ thelist_headthat links all clockdomains together. the social butterfly of the struct, lowkey π
π Description π
these are the "you better get this right or nothing works" rules for the OMAP4-only fields, so listen up bestie π
prcm_partitionshould be a macro frommach-omap2/prcm44xx.h(OMAP4 only)cm_instshould be a macro ending in_INSTfrom the OMAP4 CM instance definitions (OMAP4 only)clkdm_offsshould be a macro ending in_CDOFFSfrom the OMAP4 CM instance definitions (OMAP4 only)
ngl these are the kind of things where you don't "just know" them β you go look up the macro. the manpage is telling you where the macro lives, so use it π
π¦ SEE ALSO π¦
- Kernel file
./arch/arm/mach-omap2/clockdomain.h struct clkdm_autodep(9)struct clkdm_dep(9)struct clkdm_ops(9)
go read those too, iykyk π
and that's the whole page!! mwah π this one shipped from ./arch/arm/mach-omap2, dated October 2026 β so like, mark your calendar bestie, and go wake up a powerdomain for me πΈβ¨π
π¦ 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