aer_get_device_error_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– aer_get_device_error_info(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual moment ✨ This page is literally about aer_get_device_error_info(9) β€” the function that reads error status from dev and stores it to info. slay.


🌸 NAME 🌸

aer_get_device_error_info β€” read error status from dev and store it to info 🫢


✨ SYNOPSIS ✨

int aer_get_device_error_info (struct aer_err_info *info , int i );

πŸŽ€ ARGUMENTS πŸŽ€

  • info β€” pointer to structure to store the error record πŸ’Ύ
  • i β€” index into info->dev[] πŸ”’

πŸ”₯ RETURN πŸ”₯

  • 1 on success βœ…
  • 0 on error πŸ’€

so yeah, check that return value, okay? iykyk.


πŸ’… DESCRIPTION πŸ’…

okay so the big note here is: info is reused among all error devices. Clear fields properly 🧼✨

bestie this is important β€” info gets reused among all error devices, so clear fields properly. no cap.

πŸ¦‹ SEE ALSO πŸ¦‹

go sip some strawberry tea and read these too πŸ“:


byeeee bestie πŸ’– signed off from ./drivers/pci/pcie, dated October 2026, for aer_get_device_error_info(9) β€” mwah πŸ’…βœ¨

πŸ“¦ where this page comes from