devm_pwrseq_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_pwrseq_get(9)

okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is devm_pwrseq_get β€” the managed girlie of the power-sequencing world. she's iconic, she's got your back, and she handles cleanup so you don't have to. periodt. ✨


🌸 NAME 🌸

devm_pwrseq_get β€” literally the managed variant of pwrseq_get(). that's it, that's the tweet. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

struct pwrseq_desc * devm_pwrseq_get (struct device *dev , const char *target );

look at her. so clean. so demure. πŸ¦‹


πŸ‘‘ ARGUMENTS πŸ‘‘

  • dev β€” the device that's asking for the sequencer, and (this is the important part, no cap) the device that also manages its lifetime. so like, she's your device and your built-in cleanup crew. 🫢
  • target β€” the name of the target that the sequencer exposes, i.e. the specific thing this device wants to reach. you gotta know where you're going, bestie. 🎯

⭐ RETURN ⭐

you get back a shiny new power sequencer descriptor for your consumer driver to use β€” or ERR_PTR on failure. 😭 so yeah, always check your pointers, iykyk. πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./drivers/power/sequencing/core.c, plus the whole fam β€” go say hi:


ngl, read the un-managed pwrseq_get(9) too, so you actually understand what the devm_ fairy godmother is doing for you. 🧚

mwah, that's the page! this absolute banger lives in ./drivers/power/sequencing, stamped October 2026, and it's brought to you by the Kernel API Manual β€” section 9, where all the good stuff hangs out. slay safe out there, bestie. πŸ’…πŸ“πŸŒˆ

πŸ“¦ where this page comes from