_pwrdm_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… _pwrdm_register(9) β€” like, the Kernel API Manual page you actually wanna read πŸŽ€

okay so bestie, buckle up πŸ’– this one is from the Kernel API Manual, section 9, and it's genuinely not that deep β€” it's one little function that puts a powerdomain on a list. slay. let's go ✨


🌸 NAME 🌸

_pwrdm_register β€” register a powerdomain πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int _pwrdm_register (struct powerdomain *pwrdm );

that's it. that's the whole vibe check. one argument, returns an int, iconic behavior honestly πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • pwrdm β€” a struct powerdomain *, aka the powerdomain you're about to register. it's giving "here's the pointer, do ur thing" 🫢

✨ DESCRIPTION ✨

so what does it do? it adds a powerdomain to the internal powerdomain list. literally that's the whole job. main character energy for a linked list 🌈

and the returns? let's break it down fr fr:

  • -EINVAL β€” you handed it a null pointer 😭 like bestie. no. absolutely not.
  • -EEXIST β€” a powerdomain is already registered under the provided name. someone got there first πŸ’€ no duplicates allowed, periodt.
  • 0 β€” success!! we ate πŸ”₯πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

the kernel file in question lives at ./arch/arm/mach-omap2/powerdomain.c β€” that's the source of truth, go look 🧚

and the whole friend group (these are all (9) pages, no cap):


okay that's the whole page, you're so welcome 🫢 this cutie dropped from ./arch/arm/mach-omap2, dated October 2026, and it's filed under _pwrdm_register(9) β€” go forth and register responsibly, bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from