find_source_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 Port pci_dev data 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 set id, severity, and multi_error_valid of struct aer_err_info pointed by e_info properly. 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 πŸ’€


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