---
name: "pci_dev_present"
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_dev_present"
---

# pci\_dev\_present(9)

Returns 1 if device matching the device list is present, 0 if not.

## NAME

pci\_dev\_present - Returns 1 if device matching the device list is present, 0 if not.

## SYNOPSIS

**int pci\_dev\_present(const struct pci\_device\_id \*** *ids***);**

## ARGUMENTS

*ids*

A pointer to a null terminated list of struct pci\_device\_id structures that describe the type of PCI device the caller is trying to find.

## DESCRIPTION

Obvious fact: You do not have a reference to any device that might be found by this function, so if that device is removed from the system right after this function is finished, the value will be stale. Use this function to find devices that are usually built into a system, or for a general hint as to if another device happens to be present at this specific moment in time.

## COPYRIGHT
