pciehp_set_indicators(9)
β¨ 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_ONPCI_EXP_SLTCTL_PWR_IND_BLINKPCI_EXP_SLTCTL_PWR_IND_OFF
attnβ the attention indicator setting, also one of these:PCI_EXP_SLTCTL_ATTN_IND_ONPCI_EXP_SLTCTL_ATTN_IND_BLINKPCI_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 π
- Kernel file
./drivers/pci/hotplug/pciehp_hpc.c pcie_write_cmd(9)pciehp_check_link_active(9)pciehp_card_present(9)pciehp_card_present_or_link_active(9)pciehp_slot_reset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms