Scroll to navigation

PCI_FIND_RESOURCE(9) Hardware Interfaces PCI_FIND_RESOURCE(9)

NAME

pci_find_resource - Return matching PCI device resource

SYNOPSIS

struct resource * pci_find_resource(struct pci_dev * dev, struct resource * res);

ARGUMENTS

dev
PCI device to query
res
Resource to look for

DESCRIPTION

Goes over standard PCI resources (BARs) and checks if the given resource is partially or fully contained in any of them. In that case the matching resource is returned, NULL otherwise.

COPYRIGHT

May 2018 Kernel Hackers Manual 4.9.