_autodep_lookup(9)
π
_autodep_lookup(9) β Kernel API Manual, bestie edition β¨
okay so picture this: you're deep in the kernel, you've got a struct clkdm_autodep just sitting there with names in it, and you need those names to become actual pointers. that's the whole gig. welcome to _autodep_lookup π
πΈ NAME πΈ
_autodep_lookup β resolve autodep clkdm names to clkdm pointers, and store them. literally that's it, that's the function π«Ά
β SYNOPSIS β
void _autodep_lookup (struct clkdm_autodep *autodep );
no cap, that's the entire signature. take it in. π
π¦ ARGUMENTS π¦
autodepβ astruct clkdm_autodep *, aka the thing you're resolving. this is the main character of the function, bestie π
β¨ DESCRIPTION β¨
So here's the tea π: _autodep_lookup takes your autodep clockdomain names and resolves them into clockdomain pointers via clkdm_lookup, then stores those pointers right back in the autodep structure. name goes in, pointer comes out, everyone slays. π
Now, what even is an "autodep"? π§ it's a clockdomain sleep/wakeup dependency that gets automatically added and removed whenever clocks in the associated clockdomain are enabled or disabled (respectively π«Ά) while that clockdomain is in hardware-supervised mode. automatic. effortless. iconic.
This function is meant to be called once at clockdomain layer initialization, because these things should remain fixed for a particular architecture. one and done, periodt. π₯
And the return value? there isn't one. void. nothing. silence. π
β οΈ XXX β autodeps are deprecated and should be removed at the earliest opportunity. like, they're giving legacy. please clean this up when you get a chance, bestie ππ
π SEE ALSO π
the whole friend group π β all in the kernel file ./arch/arm/mach-omap2/clockdomain.c:
_clkdm_register(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_add_autodeps(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!! sourced straight from ./arch/arm/mach-omap2, dated October 2026, living under the <rainbow>Kernel API Manual</rainbow> banner as _autodep_lookup(9). go resolve those clkdms, bestie β you ate π
β¨π
π¦ 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