STRUCT PWRSEQ_TARGET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct pwrseq_target(9) β€” Kernel API Manual ✨

okay so bestie, welcome to struct pwrseq_target, which is literally the private power-sequence target data. that's it, that's the whole vibe. it's giving backstage-pass energy πŸ‘‘


πŸŽ€ NAME πŸŽ€

struct pwrseq_target β€” private power-sequence target data. no cap, that's the whole glow-up πŸ’–


✨ SYNOPSIS ✨

struct pwrseq_target {
    struct list_head list;
    const char *name;
    struct pwrseq_unit *unit;
    pwrseq_power_state_func post_enable;
};

look at her. main character struct. four fields. flawless. 🌸


πŸ¦‹ Members πŸ¦‹

okay so let's meet the cast, one by one, no skipping, i promise we're doing all of them 🫢

  • list β€” the siblings! this is the struct list_head that hooks this target into the list of all the targets a power sequencer exposes. she's on the group chat, fr fr πŸ’¬
  • name β€” the target's name. that's it. that's the whole field. iconic, lowkey πŸ’…
  • unit β€” the final unit for this target. the endgame. the last stop on the power-up journey πŸ”₯
  • post_enable β€” a callback that runs after the target's unit has been enabled, and β€” read this twice bestie β€” after the state lock has been released. like, actually after. it's super useful for implementing boot-up delays without blocking other users from powering up using the same power sequencer. so everyone else can still get their power on while you're out here napping in your delay. considerate queen behavior πŸ‘‘βœ¨

🌈 SEE ALSO 🌈

kernel file ./drivers/power/sequencing/core.c, plus the whole friend group:

go read them. i'll wait. iykyk πŸ§šπŸ’œ


ok and that's the page!! mwah πŸ’‹ from the ./drivers/power/sequencing girls, dated October 2026, and yes this was struct pwrseq_target(9) the whole time πŸ“πŸ¦‹β­
πŸ“¦ where this page comes from