STRUCT CLKDM_DEP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct clkdm_dep(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so like, welcome to the Kernel API Manual ✨ and today's main character is struct clkdm_dep β€” the little guy who encodes dependencies between clockdomains. no cap, he's just out here keeping track of who wakes up and who stays sleepy 😴


🌸 NAME 🌸

struct clkdm_dep β€” encodes dependencies between clockdomains 🫢


✨ SYNOPSIS ✨

struct clkdm_dep {
    const char *clkdm_name;
    struct clockdomain *clkdm;
    s16 wkdep_usecount;
    s16 sleepdep_usecount;
 };

πŸŽ€ Members πŸŽ€

  • clkdm_name β€” the clockdomain's name, literally just its name πŸ’–
  • clkdm β€” a pointer to the struct clockdomain of clkdm_name β€” like, the actual domain object that that name points at πŸ‘‘
  • wkdep_usecount β€” the number of wakeup dependencies causing this clkdm to wake β˜€οΈ (she's up, she's awake, she's booked and busy)
  • sleepdep_usecount β€” the number of sleep deps that could prevent clkdm from idling πŸ’€ (not her catching a nap, we simply cannot allow it)

πŸ¦‹ DESCRIPTION πŸ¦‹

Statically defined, periodt. ✨ The clkdm gets resolved from clkdm_name at runtime, so do not pre-initialize it β€” like, do not touch it, do not look at it, do not come for it πŸ™ˆ

XXX Should also include hardware (fixed) dependencies. yeah. she knows. she's aware. it's a whole thing πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./arch/arm/mach-omap2/clockdomain.h
  • struct clkdm_autodep(9)
  • struct clockdomain(9)
  • struct clkdm_ops(9)

go read those too bestie, iykyk πŸ§šπŸ’œ


later babes β€” this page came out of ./arch/arm/mach-omap2, dated October 2026, and it's been struct clkdm_dep(9) the whole time πŸ“ mwah πŸ’…

πŸ“¦ where this page comes from