_clkdm_add_sleepdep(9)
_clkdm_add_sleepdep(9) π¦
okay so welcome to this Kernel API Manual page, bestie. Weβre talking about _clkdm_add_sleepdep, and the name is literally the whole plot: add a sleep dependency from clkdm2 to clkdm1, and itβs lockless. slay.
πΈ NAME πΈ
_clkdm_add_sleepdep β add a sleep dependency from clkdm2 to clkdm1 (lockless). no cap, thatβs the vibe.
β¨ SYNOPSIS β¨
int _clkdm_add_sleepdep (struct clockdomain *clkdm1 , struct clockdomain *clkdm2 );
π ARGUMENTS π
clkdm1β the dependentstruct clockdomain *, aka βprevent thisstruct clockdomain *from sleeping.β Youβre putting it on do-not-nap duty, fr fr.clkdm2β the sourcestruct clockdomain *, aka βwhen thisstruct clockdomain *is active.β Thatβs the condition, bestie.
π DESCRIPTION π
okay so hereβs the tea: youβre preventing clkdm1 from automatically going inactive β and then, lowkey, heading to retention or off β if clkdm2 is active. Thatβs the sleep dependency. β¨
Return tea β:
-EINVALβ if presented with invalid clockdomain pointers, or called on a machine that does not support software-configurable hardware sleep dependencies.-ENOENTβ if the specified dependency cannot be set in hardware.0β upon success.
π«Ά SEE ALSO π«Ά
Kernel file: ./arch/arm/mach-omap2/clockdomain.c
The whole clique:
_clkdm_register(9)_autodep_lookup(9)_resolve_clkdm_deps(9)_clkdm_add_wkdep(9)_clkdm_del_wkdep(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)
okay bye bestie π β this page says source ./arch/arm/mach-omap2, dated October 2026, and itβs the _clkdm_add_sleepdep(9) entry from the Kernel API Manual. mwah π«Ά
π¦ 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