devm_pwrseq_get(9)
π 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:
struct pwrseq_unit(9)struct pwrseq_unit_dep(9)struct pwrseq_target(9)struct pwrseq_device(9)struct pwrseq_desc(9)pwrseq_device_register(9)pwrseq_device_unregister(9)devm_pwrseq_device_register(9)pwrseq_device_get_drvdata(9)pwrseq_get(9)pwrseq_put(9)pwrseq_enable(9)pwrseq_disable(9)pwrseq_to_device(9)
ngl, read the un-managedpwrseq_get(9)too, so you actually understand what thedevm_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms