genpd_xlate_simple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

okay so bestie, welcome to genpd_xlate_simple β€” the Xlate function for direct node-domain mapping. that's the whole vibe. it maps, it translates, it's giving "one node, one domain, no cap." ✨

this one lives in the Kernel API Manual, section 9. πŸŽ€


🌸 SYNOPSIS

struct generic_pm_domain * genpd_xlate_simple (const struct of_phandle_args *genpdspec , void *data );

πŸ¦‹ ARGUMENTS

  • genpdspec β€” the OF phandle args that get mapped into a PM domain. that's the whole point of her existence πŸ’…
  • data β€” the xlate function's private data, which is a pointer to struct generic_pm_domain. yes, that struct. the main character. πŸ‘‘

πŸ’– DESCRIPTION

so this is a generic xlate function, right? and she's the one you reach for when you're modelling PM domains that have their own device tree nodes β€” like, each domain has its own lil DT node and she maps you straight there. direct. no detours. periodt. 🌈

the one thing you gotta know: the private data of the xlate function needs to be a valid pointer to struct generic_pm_domain. not a vibe. not a maybe. a valid pointer. so double-check that before you hand it over, bestie 🫢


🧚 SEE ALSO

the kernel file, first of all:

  • ./drivers/pmdomain/core.c

and then the whole friend group β€” she literally knows everyone, iykyk:


and that's the whole page, bestie!! mwah πŸ’‹ this one's sourced from ./drivers/pmdomain, dated October 2026, and she answers to genpd_xlate_simple(9). go slay those device tree nodes πŸŽ€βœ¨

πŸ“¦ where this page comes from