clkdm_lookup(9)
π΅οΈββοΈ clkdm_lookup(9) β the Kernel API Manual files, bestie
okay so before we even get into it: this is page clkdm_lookup(9) from the Kernel API Manual, and honestly? She's a little function with one job and she does it flawlessly. We love a low-drama queen. π
β¨ NAME β¨
clkdm_lookup β look up a clockdomain by name, return a pointer π
Like, you give her a name, she gives you a pointer. Matchmaking but make it kernel. π
πΈ SYNOPSIS πΈ
struct clockdomain * clkdm_lookup (const char *name );
That's it. That's the whole vibe check. One argument, one pointer-shaped answer. β¨
π¦ ARGUMENTS π¦
nameβ the name of the clockdomain, bestie. That's the string you're coming to her with. π
π DESCRIPTION π
So here's the tea: clkdm_lookup finds a registered clockdomain by its name, name. Big emphasis on registered β she's not out here manifesting domains that don't exist, she's matching against the ones already in the system. π«Ά
Then she hands you back a pointer to the struct clockdomain if she found it. π«
And if she didn't find it? She returns NULL. No tears, no error code, no dramatic exit β just NULL, and you gotta deal with that yourself, iykyk. π
ngl, always check for NULL before you go dereferencing like you own the place. That's not extra, that's just common sense. π§
π SEE ALSO π
A whole friend group. A whole squad. She does not travel alone, and honestly the link list is giving main character energy of its own. π
The kernel file lives here: ./arch/arm/mach-omap2/clockdomain.c
And these are all her besties, fr fr:
_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_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 that's the whole page, she ate and left no crumbs. π
Sign-off time, because every iconic girlie has a little signature at the bottom: this one sourced from ./arch/arm/mach-omap2, dated October 2026 β so go touch some grass (it'll be there waiting), then come back and look up your clockdomains. πβ¨π
π¦ 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