Skip to content

Commit a37bee7

Browse files
YijingWangbjorn-helgaas
authored andcommitted
PCI: Update pci_find_slot() description in pci.txt
pci_find_slot() has been removed from the kernel. Document its closest replacement, pci_get_domain_bus_and_slot(), instead. [bhelgaas: fix indentation, keep mention in "obsolete" section] Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 62a276f commit a37bee7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎Documentation/PCI/pci.txt‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,9 @@ corresponding register block for you.
525525
6. Other interesting functions
526526
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
527527

528-
pci_find_slot() Find pci_dev corresponding to given bus and
529-
slot numbers.
528+
pci_get_domain_bus_and_slot() Find pci_dev corresponding to given domain,
529+
bus and slot and number. If the device is
530+
found, its reference count is increased.
530531
pci_set_power_state() Set PCI Power Management state (0=D0 ... 3=D3)
531532
pci_find_capability() Find specified capability in device's capability
532533
list.
@@ -582,7 +583,8 @@ having sane locking.
582583

583584
pci_find_device() Superseded by pci_get_device()
584585
pci_find_subsys() Superseded by pci_get_subsys()
585-
pci_find_slot() Superseded by pci_get_slot()
586+
pci_find_slot() Superseded by pci_get_domain_bus_and_slot()
587+
pci_get_slot() Superseded by pci_get_domain_bus_and_slot()
586588

587589

588590
The alternative is the traditional PCI device driver that walks PCI

0 commit comments

Comments
 (0)