pwrseq_device_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pwrseq_device_register β€” Kernel API Manual πŸ’…

okay so bestie, welcome to the pwrseq_device_register(9) page β€” yes that's the kernel API manual, we're literally in the big leagues now πŸŽ€


✨ NAME ✨

pwrseq_device_register β€” register a brand new power sequencer, slay πŸ’…


🌸 SYNOPSIS 🌸

struct pwrseq_device * pwrseq_device_register (const struct
       pwrseq_config *config );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • config β€” the configuration of the new power sequencing device. that's it, that's the whole vibe 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” the config structure is only used during the call, and you can totally free it after the function returns. no strings attached, no lingering attachment issues, we love a clean break ✨

but β€” and this is the important part, ngl β€” the config structure must have the parent device as well as the match callback and at least one target set. like, all three. no cap. if you show up without them it's not giving what it needs to give πŸ’€


⭐ RETURN ⭐

returns the address of the new pwrseq device πŸ’– or ERR_PTR on failure 😭 (check it, bestie, always check it).


🌈 SEE ALSO 🌈

kernel file ./drivers/power/sequencing/core.c, plus the whole friend group:


go read them. all of them. iykyk πŸ“šβœ¨

and that's a wrap on pwrseq_device_register(9), written by the ./drivers/power/sequencing girlies, dated October 2026 β€” periodt, bye bestie πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from