clkdm_hwmod_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– clkdm_hwmod_disable(9) β€” Kernel API Manual πŸ’–

✨ NAME ✨

clkdm_hwmod_disable β€” remove an enabled downstream hwmod from this clkdm, bestie πŸ’…


πŸ’… SYNOPSIS πŸ’…

int clkdm_hwmod_disable (struct clockdomain *clkdm , struct omap_hwmod
       *oh );

πŸŽ€ ARGUMENTS πŸŽ€

  • clkdm β€” a struct clockdomain *, the clockdomain in question 🌸
  • oh β€” a struct omap_hwmod * of the disabled downstream hwmod πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

Okay so when oh is disabled, this decrements the usecount of this clockdomain clkdm. It’s intended to be called by module_disable code. No cap.

If the clockdomain usecount goes to 0, put the clockdomain to sleep (software-supervised mode) or remove the clkdm autodependencies (hardware-supervised mode). Literally the whole vibe check ✨

Returns:

  • -EINVAL β€” if passed null pointers 😭
  • -ERANGE β€” if the clkdm usecount underflows πŸ’€
  • 0 β€” upon success or if the clockdomain is in hwsup idle mode πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./arch/arm/mach-omap2/clockdomain.c: _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_clk_disable(9), clkdm_hwmod_enable(9), _clkdm_save_context(9), _clkdm_restore_context(9), clkdm_save_context(9), clkdm_restore_context(9) 🫢


That’s the whole page, bestie πŸ’– β€” source/version path ./arch/arm/mach-omap2, dated October 2026, under the title clkdm_hwmod_disable(9). Mwah πŸ’…βœ¨

πŸ“¦ where this page comes from