devm_pwrseq_device_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

devm_pwrseq_device_register β€” bestie, it's literally the managed variant of pwrseq_device_register(). That's the whole vibe. ✨


🌸 SYNOPSIS

struct pwrseq_device * devm_pwrseq_device_register (struct device *dev ,
       const struct pwrseq_config *config );

okay so it takes a dev and a config and hands u back a shiny struct pwrseq_device *, no cap 🫢


πŸŽ€ ARGUMENTS

  • dev β€” the managing device. like, the one in charge here. main character energy honestly πŸ‘‘
  • config β€” the configuration of the new power sequencing device. it's giving "here's the blueprint, go slay" πŸ¦‹

⭐ RETURN

Returns the address of the new pwrseq device β€” or ERR_PTR on failure 😭 so yeah, check it, don't just assume it worked, iykyk.


πŸ”₯ SEE ALSO

the kernel file lives at ./drivers/power/sequencing/core.c, and here's the whole friend group ✨:


lowkey obsessed with how tidy this whole subsystem is πŸ’œ go read the rest of them fr fr

ok that's the page!! this was brought to you by the Kernel API Manual β€” located in ./drivers/power/sequencing, dated October 2026, and the page itself is devm_pwrseq_device_register(9). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from