find_source_device(9)
π find_source_device(9) π
okay so this is a page from the Kernel API Manual β yes, that Kernel API Manual, the one your Linux-kernel bestie lives in π§β¨ β and today's main character is find_source_device. it searches the device hierarchy for the source device, hence the name, we love a self-explanatory icon π
β¨ NAME β¨
find_source_device β search through device hierarchy for source device π΅οΈββοΈπ
πΈ SYNOPSIS πΈ
bool find_source_device (struct pci_dev *parent , struct aer_err_info
*e_info );
π ARGUMENTS π
parentβ pointer to Root Portpci_devdata structure, like. the whole point of entry bestie π«Άe_infoβ including detailed error information such as ID π
β RETURN β
true if found. that's it, that's the return π«
π¦ DESCRIPTION π¦
Invoked by DPC when error is detected at the Root Port π
important rules, no skipping π the caller of this function must setid,severity, andmulti_error_validofstruct aer_err_infopointed bye_infoproperly. like, properly properly. do not come in here with a half-filled struct, i'm begging π
This function must fill e_info->error_dev_num and e_info->dev[], based on the given information π
π₯ SEE ALSO π₯
Kernel file ./drivers/pci/pcie/aer.c β the mothership π
enable_ecrc_checking(9)disable_ecrc_checking(9)pcie_set_ecrc_checking(9)pcie_ecrc_get_policy(9)pci_aer_raw_clear_status(9)add_error_device(9)is_error_source(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)
and that's the page bestie, go read all twenty of those SEE ALSOs, i'll wait π§π
mwah π this lil number lives in ./drivers/pci/pcie, stamped October 2026, and yes it's still called find_source_device(9) β slay, stay iconic πβ¨
π¦ 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