STRUCT PWRSEQ_UNIT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct pwrseq_unit(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this one is literally about struct pwrseq_unit(9) β€” the private power-sequence unit data, no cap. it's giving "backstage pass to the sequencing machinery" energy πŸŽ€


✨ NAME ✨

struct pwrseq_unit β€” Private power-sequence unit data. that's it, that's the whole vibe 🫢 it's the little internal unit that holds its own stuff for the power sequencer, iykyk.


🌸 SYNOPSIS 🌸

here's the whole struct, copied exactly so you can eyeball it, bestie:

struct pwrseq_unit {
    struct kref ref;
    const char *name;
    struct list_head list;
    struct list_head deps;
    pwrseq_power_state_func enable;
    pwrseq_power_state_func disable;
    unsigned int enable_count;
 };

πŸ¦‹ Members πŸ¦‹

okay so let's go member by member, no skipping πŸ’…

  • ref β€” Reference count for this object. the moment it drops to 0, the object is destroyed. so like, bestie, please keep track of your refs 😭 when it hits zero it's over, periodt.
  • name β€” Name of this target. just the label so you know who's who πŸ‘‘
  • list β€” Link to siblings on the list of all units of a single sequencer. it's how all the units of one sequencer hold hands in a list 🫢
  • deps β€” List of units on which this unit depends. the "i need these girlies first" list 🌈
  • enable β€” Callback running the part of the power-on sequence provided by this unit. it does this unit's little slice of the power-on choreography ✨
  • disable β€” Callback running the part of the power-off sequence provided by this unit. same energy but for power-off, and yes it coordinates the off-sequence πŸ’€
  • enable_count β€” Current number of users that enabled this unit. heads up, those users may be the consumer of the power sequencer or other units that depend on this one. so it's a whole ecosystem fr fr πŸ”₯

πŸŽ€ SEE ALSO πŸŽ€

go read these next, bestie, they're all connected:


ngl this page came from ./drivers/power/sequencing and it's dated October 2026 β€” so yeah, that's the source, the version vibe, and the date all in one cute lil sign-off πŸ’œ mwah, go forth and sequence your power, icon πŸ§šβ€β™€οΈπŸ’–
πŸ“¦ where this page comes from