pwrdm_lookup(9)
π pwrdm_lookup β the kernel API manual, bestie edition β¨
okay so this is the pwrdm_lookup(9) page from the Kernel API Manual, and honestly? it's giving "small function, big responsibilities." it's short, it's sweet, and it's gonna save you so much time. π
β¨ NAME β¨
pwrdm_lookup β look up a powerdomain by name, return a pointer π«Ά
πΈ SYNOPSIS πΈ
struct powerdomain * pwrdm_lookup (const char *name );
like, that's the whole vibe. struct powerdomain * in, name as a const char *, and off you go. β¨
π¦ ARGUMENTS π¦
nameβ name of powerdomain. literally just the name, bestie. that's the whole argument. no hidden extras, no surprise params, we love a low-maintenance signature π
π DESCRIPTION π
Find a registered powerdomain by its name name. π
So picture it: you've got a name, you want the actual struct powerdomain that answers to that name, and you call this function. It goes looking. And then:
- if it finds one β it returns a pointer to that
struct powerdomainπ₯ - if it doesn't β it returns
NULL, no cap π
heads up bestie: that NULL return is a real possibility, so likeβ¦ check it before you dereference, okay? protect your kernel, protect your peace π«Ά
π SEE ALSO π
okay this is the part where the manpage just flexes on us with the biggest friend group ever. every single one of these is in the Kernel file ./arch/arm/mach-omap2/powerdomain.c, and we are NOT skipping a single one, periodt:
_pwrdm_register(9)_pwrdm_save_clkdm_state_and_activate(9)_pwrdm_restore_clkdm_state(9)pwrdm_register_platform_funcs(9)pwrdm_register_pwrdms(9)pwrdm_complete_init(9)pwrdm_lock(9)pwrdm_unlock(9)pwrdm_for_each(9)pwrdm_add_clkdm(9)pwrdm_get_mem_bank_count(9)pwrdm_set_next_pwrst(9)pwrdm_read_next_pwrst(9)pwrdm_read_pwrst(9)pwrdm_read_prev_pwrst(9)pwrdm_set_logic_retst(9)pwrdm_set_mem_onst(9)pwrdm_set_mem_retst(9)pwrdm_read_logic_pwrst(9)pwrdm_read_prev_logic_pwrst(9)pwrdm_read_logic_retst(9)pwrdm_read_mem_pwrst(9)pwrdm_read_prev_mem_pwrst(9)pwrdm_read_mem_retst(9)pwrdm_clear_all_prev_pwrst(9)pwrdm_enable_hdwr_sar(9)pwrdm_disable_hdwr_sar(9)pwrdm_has_hdwr_sar(9)pwrdm_get_valid_lp_state(9)omap_set_pwrdm_state(9)pwrdm_save_context(9)pwrdm_restore_context(9)
iykyk π the powerdomain cinematic universe is REAL and this is the full cast list.
and that's the page!! π§ it lives in ./arch/arm/mach-omap2 (yes, the whole directory is the source, slay), and this particular glow-up of the manual is dated October 2026, officially filed as pwrdm_lookup(9) β section 9, kernel API, main character energy only. bye bestie, go look up some powerdomains responsibly πβπ
π¦ 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