pwrdm_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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