STRUCT PWRSEQ_DESC(9)
π struct pwrseq_desc(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for struct pwrseq_desc, and it's genuinely such a clean little design. What it does? It wraps access to the pwrseq_device and makes sure that one user can't break the reference counting for everybody else. like, it's the responsible friend holding the group's stuff so nobody double-frees the vibes π
β¨ NAME β¨
struct pwrseq_desc β wraps access to the pwrseq_device and ensures that one user cannot break the reference counting for others. no cap, that's the whole job and it does it flawlessly π«Ά
π¦ SYNOPSIS π¦
struct pwrseq_desc {
struct pwrseq_device *pwrseq;
struct pwrseq_target *target;
bool powered_on;
};
π Members π
pwrseqβ the reference to the power sequencing device itself. your main character pointer, honestly πtargetβ a reference to the target that this descriptor allows you to control. it's giving "this is my lane" energy β¨powered_onβ the power state set by the holder of the descriptor. and bestie, read this carefully: it does not necessarily correspond to the actual power state of the device. it's what you said, not what the hardware's doing π
π SEE ALSO π
okay this is the friend group, they all show up together:
- Kernel file
./drivers/power/sequencing/core.c struct pwrseq_unit(9)struct pwrseq_unit_dep(9)struct pwrseq_target(9)struct pwrseq_device(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_disable(9)pwrseq_to_device(9)
aaaand that's the whole page, bestie β short, sweet, and iconic π this came out of ./drivers/power/sequencing in October 2026, so likeβ¦ remember that date for the exam π ily, go read pwrseq_get(9) next ππ
π¦ 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