summaryrefslogtreecommitdiff
path: root/src/pci.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-03-16 15:41:29 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-03-16 15:41:29 -0700
commit3dcf4140386b3e63955790d87093521f021bedee (patch)
tree1d1eeb5723da2b0a9c6cc1e848824010c16fc6bb /src/pci.c
parent868f348533d99b05782cd8bfedb18b9f91b393bc (diff)
downloadvyatta-biosdevname-3dcf4140386b3e63955790d87093521f021bedee.tar.gz
vyatta-biosdevname-3dcf4140386b3e63955790d87093521f021bedee.zip
Add option to search for device based on pci-id
To support case where device is not in kernel (userspace networking) need a method for finding device by pci-id. Biosdevname was already building the table, this just adds an alternative lookup algorithm.
Diffstat (limited to 'src/pci.c')
-rw-r--r--src/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pci.c b/src/pci.c
index 9b9703a..31b4457 100644
--- a/src/pci.c
+++ b/src/pci.c
@@ -365,7 +365,7 @@ static int read_virtfn_index(unsigned int *index, const struct pci_dev *pdev)
return rc;
}
-static int parse_pci_name(const char *s, int *domain, int *bus, int *dev, int *func)
+int parse_pci_name(const char *s, int *domain, int *bus, int *dev, int *func)
{
int err;
/* The domain part was added in 2.6 kernels. Test for that first. */