pciehp_set_indicators(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ pciehp_set_indicators ✨

okay so bestie, this one's from the Kernel API Manual and it's literally the glow-up button for your PCIe hotplug slot πŸ’… like it sets the attention indicator, the power indicator, or both. slay.


🌸 SYNOPSIS 🌸

void pciehp_set_indicators (struct controller *ctrl , int pwr , int attn );

no cap, that's the whole signature. three args, zero drama 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ctrl β€” the PCIe hotplug controller πŸ’– this is your main character, the thing you're lighting up.
  • pwr β€” the power indicator setting, and it's gotta be one of these three:
    • PCI_EXP_SLTCTL_PWR_IND_ON
    • PCI_EXP_SLTCTL_PWR_IND_BLINK
    • PCI_EXP_SLTCTL_PWR_IND_OFF
  • attn β€” the attention indicator setting, also one of these:
    • PCI_EXP_SLTCTL_ATTN_IND_ON
    • PCI_EXP_SLTCTL_ATTN_IND_BLINK
    • PCI_EXP_SLTCTL_ATTN_IND_OFF

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does is set the attention indicator, the power indicator, or both β€” pick your fighter ✨

and here's the little detail that ate: either pwr or attn can also be INDICATOR_NOOP, which means "leave that indicator exactly how it is, don't touch it" πŸ™ˆ so you can update one light and completely ignore the other, iconic.

no guessing here, bestie β€” those are the documented values, so don't go inventing your own πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

like, read the whole squad fr fr 🧚


okay that's the whole page, bestie πŸ’œ it lives under ./drivers/pci/hotplug and it's dated October 2026 β€” so go forth, set those indicators, and remember: LED blink is a whole vibe check 🌈⭐πŸ”₯

πŸ“¦ where this page comes from