STRUCT PWRSEQ_UNIT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 be NULL-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: deps is not playing about that NULL termination β€” it must be NULL-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