_clkdm_add_sleepdep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

_clkdm_add_sleepdep(9) πŸ¦‹

okay so welcome to this Kernel API Manual page, bestie. We’re talking about _clkdm_add_sleepdep, and the name is literally the whole plot: add a sleep dependency from clkdm2 to clkdm1, and it’s lockless. slay.


🌸 NAME 🌸

_clkdm_add_sleepdep β€” add a sleep dependency from clkdm2 to clkdm1 (lockless). no cap, that’s the vibe.

✨ SYNOPSIS ✨

int _clkdm_add_sleepdep (struct clockdomain *clkdm1 , struct clockdomain *clkdm2 );

πŸŽ€ ARGUMENTS πŸŽ€

  • clkdm1 β€” the dependent struct clockdomain *, aka β€œprevent this struct clockdomain * from sleeping.” You’re putting it on do-not-nap duty, fr fr.
  • clkdm2 β€” the source struct clockdomain *, aka β€œwhen this struct clockdomain * is active.” That’s the condition, bestie.

πŸ’… DESCRIPTION πŸ’…

okay so here’s the tea: you’re preventing clkdm1 from automatically going inactive β€” and then, lowkey, heading to retention or off β€” if clkdm2 is active. That’s the sleep dependency. ✨

Return tea β˜•:

  • -EINVAL β€” if presented with invalid clockdomain pointers, or called on a machine that does not support software-configurable hardware sleep dependencies.
  • -ENOENT β€” if the specified dependency cannot be set in hardware.
  • 0 β€” upon success.

🫢 SEE ALSO 🫢

Kernel file: ./arch/arm/mach-omap2/clockdomain.c

The whole clique:


okay bye bestie πŸ’– β€” this page says source ./arch/arm/mach-omap2, dated October 2026, and it’s the _clkdm_add_sleepdep(9) entry from the Kernel API Manual. mwah 🫢

πŸ“¦ where this page comes from