of_genpd_add_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

of_genpd_add_device β€” bestie, this is the one that adds a device to an I/O PM domain ✨


🌸 SYNOPSIS 🌸

int of_genpd_add_device (const struct of_phandle_args *genpdspec ,
struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • genpdspec β€” the OF phandle args you use to look up the PM domain, iykyk πŸ¦‹
  • dev β€” the device getting added. that's the whole vibe.

✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” it looks up an I/O PM domain based on the phandle args you hand it, then adds the device to that PM domain. main character behavior honestly πŸ‘‘

and if it goes wrong? it returns a negative error code on failure. no cap, that's your signal 😭

ngl, check that return value. negative error code = it didn't slay πŸ’€

🫢 SEE ALSO 🫢

Kernel file ./drivers/pmdomain/core.c


and that's the whole page, bestie πŸ’… this icon lives in ./drivers/pmdomain, and it's dated October 2026 β€” so like, future vibes fr fr 🌈⭐ go forth and add those devices πŸ§šπŸ’œ

πŸ“¦ where this page comes from