pci_find_resource(9)

pci_find_resource9

Return matching pci device resource

Usage

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

Arguments

dev

PCI device to query

res

Resource to look for

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.