Page MenuHomeFreeBSD

linuxkpi: Define `PCI_POSSIBLE_ERROR()` macro
ClosedPublic

Authored by dumbbell on Jan 4 2026, 10:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 27, 6:27 AM
Unknown Object (File)
Tue, May 26, 8:31 AM
Unknown Object (File)
Tue, May 26, 5:24 AM
Unknown Object (File)
May 20 2026, 12:24 PM
Unknown Object (File)
May 17 2026, 10:53 AM
Unknown Object (File)
May 17 2026, 12:25 AM
Unknown Object (File)
May 16 2026, 9:37 PM
Unknown Object (File)
May 14 2026, 7:36 AM
Subscribers

Details

Summary

It comes with PCI_ERROR_RESPONSE and PCI_SET_ERROR_RESPONSE() but we don't use them so far. Therefore PCI_POSSIBLE_ERROR() will always reture false.

As written in the comment, this macro is a bit weird given the Linux `pci_read_*() functions can return an error code separately from the read value.

The PCI_POSSIBLE_ERROR() macro started to be used by the amdgpu DRM driver in Linux 6.10.

This is part of the update of DRM drivers to Linux 6.10.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable