pwrseq_enable(9)
β¨ pwrseq_enable(9) β¨
okay so bestie, welcome to pwrseq_enable(9) from the Kernel API Manual β this is the lil kernel function that slides into the power sequencer's DMs and is like "hey queen, the consumer device would like to be ON please π
"
πΈ NAME πΈ
pwrseq_enable β issue a power-on request on behalf of the consumer device π
π SYNOPSIS π
int pwrseq_enable (struct pwrseq_desc *desc );
like literally that's the whole vibe check, no cap π«Ά
π¦ ARGUMENTS π¦
descβ the descriptor that references the power sequencer. it's giving "here's my ID, let me in" energy π
β DESCRIPTION β
so this function tells the power sequencer that the consumer wants to be powered-up. main character request, honestly π₯
here's the tea though, there are three situations and you gotta know which one you're in:
- the sequencer may already have powered-up the device β in which case the function just returns
0and you can go about your day π - if the power-up sequence is already in progress, the function will block until it's done, then return
0. yes bestie, it waits. patient icon behavior π§ - if this is the first request, the device will be powered up. periodt π
π RETURN π
0on success π- negative error number on failure π
π SEE ALSO π
okay this list is long but every single one matters, don't skip, iykyk:
- 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_disable(9)pwrseq_to_device(9)
π tiny reminder babe: this page lives at ./drivers/power/sequencing β that's where the sauce is.
and that's the whole page, you ate that π this lil masterpiece comes courtesy of ./drivers/power/sequencing, dated October 2026 β stan the power sequencing crew, they're iconic πβ¨π
π¦ 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