clkdm_add_wkdep(9)
π clkdm_add_wkdep (9) π
okay so bestie, this one's from the Kernel API Manual and it's literally about making one clockdomain wake up the second another one does. it's giving "i got you, you got me" energy fr fr π«Ά
β¨ NAME β¨
clkdm_add_wkdep β add a wakeup dependency from clkdm2 to clkdm1
β¨ SYNOPSIS β¨
int clkdm_add_wkdep (struct clockdomain *clkdm1 , struct clockdomain *clkdm2 );
β¨ ARGUMENTS β¨
clkdm1β the dependent one, aka thestruct clockdomain *we're waking up. she's the one who gets woken πΈclkdm2β the source, aka thestruct clockdomain *whose wakeup triggers everything. when she wakes up, the whole thing goes down π
β¨ DESCRIPTION β¨
okay so the vibe is: when the clockdomain represented by clkdm2 wakes up, wake up clkdm1. simple as that, no cap π
this whole feature is implemented in hardware on the OMAP, and it exists to reduce the wakeup latency of the dependent clockdomain clkdm1. literally designed to make her wake up faster, iconic behavior honestly π¦
and because nothing is free, here's the return-value tea:
-EINVALβ you handed it invalid clockdomain pointers π-ENOENTβclkdm2cannot wake upclkdm1in hardware, so the hardware said "not me" π0β success, slay β¨
β¨ SEE ALSO β¨
the whole friend group lives in the kernel file ./arch/arm/mach-omap2/clockdomain.c and honestly here's everyone:
_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_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)
bestie go read them all, i promise they're worth it π₯
and that's the whole page! π this one came out of ./arch/arm/mach-omap2 and it's dated October 2026 β mwah, love that for us ππ§
π¦ 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