pci_reset_function(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pci_reset_function(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the pci_reset_function(9) page from the Kernel API Manual. this is the whole vibe, no skips, no cap.

🌸 NAME 🌸

pci_reset_function β€” quiesce and reset a PCI device function. literally the main character of this page πŸ’…

✨ SYNOPSIS ✨

int pci_reset_function (struct pci_dev *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the PCI device to reset. that's the one getting the reset treatment 🫢

πŸ’… DESCRIPTION πŸ’…

okay so some devices allow an individual function to be reset without affecting other functions in the same device. the PCI device must be responsive to PCI config space in order to use this function.

bestie, real talk: no responsiveness to PCI config space = no reset. it's giving prerequisite, periodt.

this function does not just reset the PCI portion of a device β€” it clears all the state associated with the device. it differs from __pci_reset_function_locked in that it saves and restores device state over the reset and takes the PCI device lock. highkey important.

Returns 0 if the device function was successfully reset or negative if the device doesn't support resetting a single function. that's the return vibe check πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/pci/pci.c β€” and here's the whole SEE ALSO lineup, in exact order, iykyk:


that's the page, bestie! source/version: ./drivers/pci; date: October 2026; page: pci_reset_function(9). go reset responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from