STRUCT PWRSEQ_UNIT_DATA(9)
π NAME π
okay bestie, welcome to the struct pwrseq_unit_data(9) page from the Kernel API Manual β and it's literally the configuration of a single power sequencing unit. One unit, one little config card, all the sequencing vibes. slay.
β¨ SYNOPSIS β¨
here's the exact struct, no cap:
struct pwrseq_unit_data {
const char *name;
const struct pwrseq_unit_data **deps;
pwrseq_power_state_func enable;
pwrseq_power_state_func disable;
};
π Members π
nameβ the name of the unit. iconic little label, fr.depsβ the units that must be enabled before this one and disabled after it, in the order they come in this array. This array must beNULL-terminated. π¨enableβ callback running the part of the power-on sequence provided by this unit. power-up main character energy.disableβ callback running the part of the power-off sequence provided by this unit. goodbye sequence, but make it coordinated.
π«Ά real talk:depsis not playing about thatNULLtermination β it must beNULL-terminated, periodt.
π SEE ALSO π
- Kernel file
./include/linux/pwrseq/provider.hβ go peep it, bestie. struct pwrseq_target_data(9), struct pwrseq_config(9)β more struct lore, iykyk.
signed off with love from source/version ./include/linux/pwrseq, dated October 2026, on the struct pwrseq_unit_data(9) page π
β¨
π¦ 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