pci_aer_raw_clear_status(9)
π pci_aer_raw_clear_status(9) β from the Kernel API Manual, bestie
Okay so picture this: you're deep in ./drivers/pci/pcie/aer.c, the vibes are immaculate but the AER error registers are not, and you just need them cleared. That's this function. It's giving "no thoughts, just wipe the registers." β¨
πΈ SYNOPSIS πΈ
int pci_aer_raw_clear_status (struct pci_dev *dev );
π ARGUMENTS π
devβ the PCI device, aka the main character of this whole operation π«Ά
π DESCRIPTION π
So what does it actually do? It clears the AER error status registers unconditionally β like, no questions asked, no vibe check, nothing. It does not care whether those registers are owned by firmware or by the OS. Not one bit. It's clearing them anyway. π
Unconditional is the whole point here β the manpage is very clear that this happens regardless of who owns the registers, so don't come for it expecting it to ask permission first. π
β RETURN β
0on success π- negative on failure π
π¦ SEE ALSO π¦
Kernel file ./drivers/pci/pcie/aer.c, plus the whole friend group:
enable_ecrc_checking(9)disable_ecrc_checking(9)pcie_set_ecrc_checking(9)pcie_ecrc_get_policy(9)add_error_device(9)is_error_source(9)find_source_device(9)pci_aer_unmask_internal_errors(9)pci_aer_handle_error(9)aer_get_device_error_info(9)aer_isr_one_error_type(9)aer_isr_one_error(9)aer_isr(9)aer_irq(9)aer_enable_rootport(9)aer_disable_rootport(9)aer_remove(9)aer_probe(9)aer_root_reset(9)pcie_aer_init(9)
π That's the whole page, no cap. Go clear those registers, icon. π
This lil masterpiece lives in ./drivers/pci/pcie, dated October 2026, and it's called pci_aer_raw_clear_status(9) β say it with your chest, periodt. ππ
π¦ 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