---
name: "pci_add_dynid"
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_add_dynid"
---

# pci\_add\_dynid(9)

add a new PCI device ID to this driver and re-probe devices

## NAME

pci\_add\_dynid - add a new PCI device ID to this driver and re-probe devices

## SYNOPSIS

**int pci\_add\_dynid(struct pci\_driver \*** *drv***, unsigned int** *vendor***, unsigned int** *device***, unsigned int** *subvendor***, unsigned int** *subdevice***, unsigned int** *class***, unsigned int** *class\_mask***, unsigned long** *driver\_data***);**

## ARGUMENTS

*drv*

target pci driver

*vendor*

PCI vendor ID

*device*

PCI device ID

*subvendor*

PCI subvendor ID

*subdevice*

PCI subdevice ID

*class*

PCI class

*class\_mask*

PCI class mask

*driver\_data*

private driver data

## DESCRIPTION

Adds a new dynamic pci device ID to this driver and causes the driver to probe for all devices again. *drv* must have been registered prior to calling this function.

## CONTEXT

Does GFP\_KERNEL allocation.

## RETURN

0 on success, -errno on failure.

## COPYRIGHT
