Scroll to navigation

PCI_BUS_FIND_CAPABIL(9) Hardware Interfaces PCI_BUS_FIND_CAPABIL(9)

NAME

pci_bus_find_capability - query for devices' capabilities

SYNOPSIS

int pci_bus_find_capability(struct pci_bus * bus, unsigned int devfn, int cap);

ARGUMENTS

struct pci_bus * bus

the PCI bus to query

unsigned int devfn

PCI device to query

int cap

capability code

DESCRIPTION

Like pci_find_capability but works for pci devices that do not have a pci_dev structure set up yet.

Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11