---
name: "pci_scan_slot"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_scan_slot"
---

# pci\_scan\_slot(9)

scan a PCI slot on a bus for devices.

## NAME

pci\_scan\_slot - scan a PCI slot on a bus for devices.

## SYNOPSIS

**int pci\_scan\_slot(struct pci\_bus \*** *bus***, int** *devfn***);**

## ARGUMENTS

*bus*

PCI bus to scan

*devfn*

slot number to scan (must have zero function.)

## DESCRIPTION

Scan a PCI slot on the specified PCI bus for devices, adding discovered devices to the *bus*-\>devices list. New devices will not have is\_added set.

Returns the number of new devices found.

## COPYRIGHT
