clkdm_add_autodeps(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– clkdm_add_autodeps β€” the Kernel API Manual, bestie edition πŸ’–

Okay so gather round, because we're talking about clkdm_add_autodeps, a function from the Kernel API Manual (clkdm_add_autodeps(9) if you're being formal about it). It's giving "small function, big responsibilities," and honestly? We love a lowkey legend. 🌸


✨ NAME ✨

clkdm_add_autodeps β€” add auto sleepdeps/wkdeps to clkdm upon clock enable

Like, the whole entire vibe is: clock turns on β†’ clockdomain gets its auto dependencies. No cap. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

void clkdm_add_autodeps (struct clockdomain *clkdm );

That's it. That's the whole signature. Minimalist icon behavior. πŸ’…


🌸 ARGUMENTS 🌸

  • clkdm β€” struct clockdomain * β€” the clockdomain getting the treatment. This is the main character of the whole operation, fr fr.

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea πŸ“: this function adds the "autodep" sleep & wakeup dependencies to clockdomain 'clkdm' in hardware-supervised mode.

It's meant to be called from the clock framework whenever a clock that lives inside clockdomain 'clkdm' gets enabled. Clock goes on, this function gets the call. That's the flow. 🫢

And the return value? None. No return value at all. It's a void function and it knows it. Zero notes. πŸ’€

⚠️ XXX β€” autodeps are deprecated and should be removed at the earliest opportunity. Not me warning you that this whole feature is on its way out 😭 but yeah, that's literally in the docs, so write it down: deprecated, remove ASAP.

πŸ¦‹ SEE ALSO πŸ¦‹

Everything lives in the kernel file ./arch/arm/mach-omap2/clockdomain.c, and here's the full squad of related functions β€” every single one, because we don't do "etc." in this household ✨:


And that's the page, bestie! 🌈 The whole thing comes from ./arch/arm/mach-omap2, it's dated October 2026, and it's the clkdm_add_autodeps(9) entry from the Kernel API Manual. Go forth and add those autodeps β€” but like, remember they're deprecated, so maybe don't get too attached πŸ™ˆβœ¨

πŸ“¦ where this page comes from