pwrseq_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pwrseq_enable(9) ✨

okay so bestie, welcome to pwrseq_enable(9) from the Kernel API Manual β€” this is the lil kernel function that slides into the power sequencer's DMs and is like "hey queen, the consumer device would like to be ON please πŸ’…"


🌸 NAME 🌸

pwrseq_enable β€” issue a power-on request on behalf of the consumer device πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int pwrseq_enable (struct pwrseq_desc *desc );

like literally that's the whole vibe check, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the descriptor that references the power sequencer. it's giving "here's my ID, let me in" energy πŸ‘‘

⭐ DESCRIPTION ⭐

so this function tells the power sequencer that the consumer wants to be powered-up. main character request, honestly πŸ”₯

here's the tea though, there are three situations and you gotta know which one you're in:

  • the sequencer may already have powered-up the device β€” in which case the function just returns 0 and you can go about your day 🌈
  • if the power-up sequence is already in progress, the function will block until it's done, then return 0. yes bestie, it waits. patient icon behavior 🧚
  • if this is the first request, the device will be powered up. periodt πŸ’…

πŸ‘‘ RETURN πŸ‘‘

  • 0 on success πŸ’š
  • negative error number on failure πŸ’€

πŸ’œ SEE ALSO πŸ’œ

okay this list is long but every single one matters, don't skip, iykyk:


πŸ“ tiny reminder babe: this page lives at ./drivers/power/sequencing β€” that's where the sauce is.

and that's the whole page, you ate that πŸ’– this lil masterpiece comes courtesy of ./drivers/power/sequencing, dated October 2026 β€” stan the power sequencing crew, they're iconic πŸ‘‘βœ¨πŸŽ€

πŸ“¦ where this page comes from