pwrseq_disable(9)
β¨ pwrseq_disable β Kernel API Manual, bestie edition β¨
okay so this is pwrseq_disable(9), a kernel API manual page, and honestly? it's giving "the breakup text of power management" π
lowkey essential, highkey underrated. let's get into it π«Ά
πΈ NAME πΈ
pwrseq_disable β Issue a power-off request on behalf of the consumer device.
like, you're the consumer, and you're officially done, so you file the paperwork to shut things down π
π¦ SYNOPSIS π¦
int pwrseq_disable (struct pwrseq_desc *desc );
that's it. that's the whole vibe check. one function, one argument, one int coming back at you β¨
π ARGUMENTS π
descβ Descriptor referencing the power sequencer. yes bestie, this is the descriptor, the one that knows which power sequencer we're talking about, no cap π₯
π DESCRIPTION π
so here's the tea β β this here function undoes the effects of pwrseq_enable. it's the β¨reverseβ¨ of the enable, the anti-enable, the "we're so back" to the enable's "it's over."
it issues a power-off request on behalf of the consumer, and when the last remaining user does so, the power-down sequence will be started. the way that the last user out just turns off the lights π iconic behavior fr fr.
and listen β if a power-down sequence is already in progress when you call this, the function will block until it's complete and then return. so yes, you will simply have to wait. it's giving "held at the door by the bouncer until the party's actually over" π no skipping ahead, bestie.
β RETURN β
0on success π- negative error number on failure π (not me getting a negative number back... wounded)
π SEE ALSO π
- Kernel file
./drivers/power/sequencing/core.c 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)devm_pwrseq_get(9)pwrseq_enable(9)pwrseq_to_device(9)
the whole friend group, honestly π«Ά go read them all, iykyk π
and that's the page, bestie π§ this little number lives in ./drivers/power/sequencing, dated October 2026 β go off, power sequencing directory, we love to see it πππ
π¦ 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