pwrseq_device_register(9)
π 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:
struct pwrseq_unit(9)struct pwrseq_unit_dep(9)struct pwrseq_target(9)struct pwrseq_device(9)struct pwrseq_desc(9)pwrseq_device_unregister(9)devm_pwrseq_device_register(9)pwrseq_device_get_drvdata(9)pwrseq_get(9)pwrseq_put(9)devm_pwrseq_get(9)pwrseq_enable(9)pwrseq_disable(9)pwrseq_to_device(9)
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
- 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