clkdm_add_autodeps(9)
π 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 β¨:
_clkdm_register(9)_autodep_lookup(9)_resolve_clkdm_deps(9)_clkdm_add_wkdep(9)_clkdm_del_wkdep(9)_clkdm_add_sleepdep(9)_clkdm_del_sleepdep(9)clkdm_register_platform_funcs(9)clkdm_register_clkdms(9)clkdm_register_autodeps(9)clkdm_complete_init(9)clkdm_lookup(9)clkdm_for_each(9)clkdm_get_pwrdm(9)clkdm_add_wkdep(9)clkdm_del_wkdep(9)clkdm_read_wkdep(9)clkdm_clear_all_wkdeps(9)clkdm_add_sleepdep(9)clkdm_del_sleepdep(9)clkdm_read_sleepdep(9)clkdm_clear_all_sleepdeps(9)clkdm_sleep_nolock(9)clkdm_sleep(9)clkdm_wakeup_nolock(9)clkdm_wakeup(9)clkdm_allow_idle_nolock(9)clkdm_allow_idle(9)clkdm_deny_idle_nolock(9)clkdm_deny_idle(9)clkdm_del_autodeps(9)clkdm_clk_enable(9)clkdm_clk_disable(9)clkdm_hwmod_enable(9)clkdm_hwmod_disable(9)_clkdm_save_context(9)_clkdm_restore_context(9)clkdm_save_context(9)clkdm_restore_context(9)
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
- 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