clkdm_get_pwrdm(9)
π clkdm_get_pwrdm(9) β the Kernel API Manual, bestie edition
okay so this is a page from the Kernel API Manual, and it's about clkdm_get_pwrdm. it's short, it's sweet, it's giving "one job and it does it perfectly" β¨
πΈ NAME πΈ
clkdm_get_pwrdm β returns a ptr to the pwrdm that this clkdm resides in π«Ά
like. literally that's the whole thing. a little pointer handoff between two kernel structs, and honestly? iconic.
β¨ SYNOPSIS β¨
struct powerdomain * clkdm_get_pwrdm (struct clockdomain *clkdm );
that return type is struct powerdomain *, and yes she does come with a space before the paren, that's just how the manual rolls π
π ARGUMENTS π
clkdmβ type:struct clockdomain *. that's it, that's the whole argument list. one (1) clockdomain pointer, no notes, no extras, no secret third thing π
π¦ DESCRIPTION π¦
so here's the vibe check: you hand it a clockdomain, and it returns a pointer to the struct powerdomain that the specified clockdomain clkdm exists in. π β¨ you give it a clkdm, it tells you which pwrdm she lives in. it's giving "showing you around the neighborhood."
and if clkdm is NULL? it returns NULL. no cap. no crash, no drama, no yelling β just a polite NULL right back at you. ππ so your null-check era can stay cute and your pointer math can stay safe.
π tiny reminder that theNULLcase gives you aNULLback, so check before you deref, bestie β it's not gonna do that part for you!
π₯ SEE ALSO π₯
okay so the whole squad shows up here, and it's a LOT of them β the Kernel file ./arch/arm/mach-omap2/clockdomain.c plus this entire friend group:
_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_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)
iykyk β that's the whole clockdomain extended universe, and yes we stan every single one π«Άπ
and that's the page!! it lives in ./arch/arm/mach-omap2, dated October 2026, and it's titled clkdm_get_pwrdm(9) β go forth and find your powerdomain, bestie, you got this ππβ
π¦ 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