pwrdm_regis...atform_funcs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pwrdm_register_platform_funcs β€” the Kernel API Manual tea πŸŽ€

okay bestie, welcome to the Kernel API Manual page for pwrdm_regis...atform_funcs(9) β€” yes the title got truncated by the terminal, no we're not gonna fix it, it's giving main character energy. sit down, grab a strawberry πŸ“, and let's talk about registering powerdomain implementation fns ✨


πŸ¦‹ NAME πŸ¦‹

pwrdm_register_platform_funcs β€” literally the function where you register your powerdomain implementation fns, no cap πŸ’–


🌸 SYNOPSIS 🌸

int pwrdm_register_platform_funcs (struct pwrdm_ops *po );

like, that's it. that's the whole vibe check πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • po β€” func pointers for arch specific implementations πŸ’« this is where you hand over your lil bundle of function pointers, iykyk

✨ DESCRIPTION ✨

So here's the tea β˜•: you're registering the list of function pointers that get used to actually implement the powerdomain functions across the different OMAP SoCs. different chip, different plumbing, same vibe 🧚

⚠️ bestie, listen β€” this should be called before any other pwrdm_register*() function. like, before. not after. before. πŸ™ˆ

Return values, fr fr:

  • -EINVAL β€” if po is null 😭 (you gave it nothing, it said no)
  • -EEXIST β€” if platform functions have already been registered πŸ’€ (you already did this, it's not doing it twice)
  • 0 β€” upon success πŸ‘‘ slay, we love a clean zero

🌈 SEE ALSO 🌈

okay this list is long, but every single one of these is iconic in its own right, so here we go β€” Kernel file ./arch/arm/mach-omap2/powerdomain.c plus:

like, go read them. all of them. this is your reading list now πŸ“šπŸ’…


and that's the whole page bestie!! 🫢 this lil slice of the Kernel API Manual lives at ./arch/arm/mach-omap2 and it's stamped October 2026 β€” so yeah, future vibes only ⭐ bye, ily, go register your funcs responsibly πŸ’œ

πŸ“¦ where this page comes from