patch-2.3.37 linux/Documentation/pci.txt

Next file: linux/Documentation/proc_usb_info.txt
Previous file: linux/Documentation/networking/ip-sysctl.txt
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.36/linux/Documentation/pci.txt linux/Documentation/pci.txt
@@ -35,8 +35,13 @@
 VENDOR_ID or DEVICE_ID.  This allows searching for any device from a
 specific vendor, for example.
 
-   In case you want to do some complex matching, look at pci_devices -- it's
-a linked list of pci_dev structures for all PCI devices in the system.
+   In case you want to do some complex matching, you can walk the list of all
+known PCI devices:
+
+		struct pci_dev *dev;
+		pci_for_each_dev(dev) {
+			... do anything you want with dev ...
+		}
 
    The `struct pci_dev *' pointer serves as an identification of a PCI device
 and is passed to all other functions operating on PCI devices.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)