_clkdm_register(9)
π _clkdm_register(9) β like, the kernel API manual era π
okay bestie, so this is a page from the Kernel API Manual, section 9, and it's all about _clkdm_register. Yes it starts with an underscore. Yes that's on purpose. Come with me π
β¨ NAME β¨
_clkdm_register β register a clockdomain ππ
β¨ SYNOPSIS β¨
int _clkdm_register (struct clockdomain *clkdm );
π ARGUMENTS π
clkdmβ literally astruct clockdomain *, bestie. That's the one you're registering. That's the whole vibe. π«Ά
πΈ DESCRIPTION πΈ
So what this icon does is it adds a clockdomain to the internal clockdomain list. That's it, that's the job, and honestly? It ate. π₯
But listen, the return value is where the plot twists happen:
- Returns
-EINVALif you hand it a null pointer. Do not do that. π - Returns
-EEXISTif a clockdomain is already registered by the name you provided. Somebody got there first, and it was not you. π - Returns
0upon success. Slay.0is the good number. πβ
no cap:-EINVALand-EEXISTare the two failure modes, and0means you did it. memorize that and you're golden π
π¦ SEE ALSO π¦
The kernel file lives at ./arch/arm/mach-omap2/clockdomain.c and it's a whole friend group in there. Go say hi to:
_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_hwmod_disable(9)_clkdm_save_context(9)_clkdm_restore_context(9)clkdm_save_context(9)clkdm_restore_context(9)
like, that's the entire roster. iykyk ππ
and that's the whole page, bestie!! this one's straight out of ./arch/arm/mach-omap2, dated October 2026 β so yeah, future-fresh, iconic, periodt. go register ur clockdomain, 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