clkdm_clk_disable(9)
clkdm_clk_disable(9) π
okay bestie, welcome to the clkdm_clk_disable page from the Kernel API Manual β lowercase girlies, this one's a function, not a command, so buckle up π
β¨ NAME β¨
clkdm_clk_disable β remove an enabled downstream clock from this clkdm π«Ά
πΈ SYNOPSIS πΈ
int clkdm_clk_disable (struct clockdomain *clkdm , struct clk *clk );
like, that's the whole vibe. two args, one int coming back at you β¨
π¦ ARGUMENTS π¦
clkdmβ astruct clockdomain *π the clockdomain we're messing with, main character energyclkβ astruct clk *of the disabled downstream clock π°οΈ yes it's the disabled one, that's not a typo, that's the whole point
π₯ DESCRIPTION π₯
so here's the tea β β when clk gets disabled, you decrement the usecount of this clockdomain, clkdm. literally that's it, that's the job. it's intended to be called by clk_disable code, so like, don't just call it because you feel like it, iykyk π
and if the clockdomain usecount goes all the way to 0? two possibilities depending on the vibe:
- software-supervised mode β put the clockdomain to sleep π΄
- hardware-supervised mode β remove the clkdm autodependencies π
now the return values, and this part is important bestie, don't skip π
- returns
-EINVALif you passed null pointers (not me passing null pointers π) - returns
-ERANGEif the clkdm usecount underflows π like it went below where it should, that's bad - returns
0upon success β¨ or if the clockdomain is in hwsup idle mode π
so yeah, 0 is the slay outcome, negative numbers are the "girl what" outcomes π
π SEE ALSO π
all the siblings, the whole friend group, no one left out π«Ά the kernel file is ./arch/arm/mach-omap2/clockdomain.c and here's everybody:
_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_add_autodeps(9)clkdm_del_autodeps(9)clkdm_clk_enable(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)
ok that's the whole page bestie, go forth and decrement responsibly π
that's a wrap from the ./arch/arm/mach-omap2 girlies, dated October 2026, version vibes included β mwah, mwah, periodt ππ
π¦ 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