clkdm_read_wkdep(9)
π clkdm_read_wkdep π
okay so bestie, welcome to the Kernel API Manual β yes, THE manual, the one and only β¨. today's main character is clkdm_read_wkdep, and honestly? she's a little detective. she just wants to know if one clockdomain is gonna wake up another one. lowkey iconic.
πΈ NAME πΈ
clkdm_read_wkdep β read wakeup dependency state from clkdm2 to clkdm1
like, "hey, is clkdm1 gonna get woken up by clkdm2 or not" β that's her whole job π«Ά
β¨ SYNOPSIS β¨
int clkdm_read_wkdep (struct clockdomain *clkdm1 , struct clockdomain
*clkdm2 );
π ARGUMENTS π
clkdm1β the *struct clockdomain ** that's gonna get woken up, aka the dependent one π₯Ί she's the one who wakesclkdm2β the *struct clockdomain ** that does the waking, aka the source π€ she's the one who's up first
π¦ DESCRIPTION π¦
So here's the vibe check π: this returns 1 if there's a hardware wakeup dependency existing where clkdm1 will be awoken when clkdm2 wakes up. Basically if the dependency is real, you get a 1 and she ate π
You get 0 if the dependency is not set. no dependency, no drama.
You get -EINVAL if either clockdomain pointer is invalid β like, bestie, those are not real pointers, try again π
And you get -ENOENT if the hardware is literally incapable. it's not her fault, the hardware just can't π
REVISIT: rn this function only represents software-controllable wakeup dependencies. Wakeup dependencies that are fixed in hardware are not yet handled here β so don't come for her about those, she's very upfront about it β¨
π SEE ALSO π
Kernel file ./arch/arm/mach-omap2/clockdomain.c β and the whole friend group, fr fr:
_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_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)
alright bestie, that's the whole page, no cap π§π this came out of ./arch/arm/mach-omap2, dated October 2026, and it's filed under clkdm_read_wkdep(9) β periodt, go read your wakeup deps responsibly ππ
π¦ 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