genpd_prepare(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… genpd_prepare(9) β€” the Kernel API Manual page you actually wanna read

okay so bestie, welcome to the Kernel API Manual entry for genpd_prepare. it's a tiny little function with a big job and i'm gonna walk you through it like we're on facetime 🫢


✨ NAME ✨

genpd_prepare β€” start the power transition of a device that lives in a PM domain. literally its whole personality πŸ’…


🌸 SYNOPSIS 🌸

int genpd_prepare (struct device *dev );

yes that's it. one arg. no cap. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device you're starting the transition of. that's the one. hand it over and let genpd do its thing ✨

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: genpd_prepare kicks off a power transition of a device β€” and to be clear, this happens during a system-wide power transition, not just any random tuesday 😌

and it does this under the assumption that the device's pm_domain field points to the domain member of an object of type struct generic_pm_domain β€” which represents a PM domain consisting of I/O devices. 🧚

bestie pls note: it literally says "under the assumption" β€” so this function is trusting you to have set things up right. it's not out here double-checking your work. main character energy, but also, be careful πŸ’€

πŸ’œ SEE ALSO πŸ’œ

first up, the source of truth β€” the kernel file itself:

  • ./drivers/pmdomain/core.c

and now the whole friend group 😭 (yes, all of them, i'm not skipping a single one):

like, that is an iconic amount of cross-references and every single one of them ate πŸ’…πŸ”₯


and that's the whole page bestie β€” go forth and transition those power domains responsibly πŸ¦‹βœ¨

this gem comes to you from the ./drivers/pmdomain source tree, dated October 2026 β€” see you in the next release, mwah πŸ’–

πŸ“¦ where this page comes from