diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-03-16 15:41:29 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-03-16 15:41:29 -0700 |
commit | 3dcf4140386b3e63955790d87093521f021bedee (patch) | |
tree | 1d1eeb5723da2b0a9c6cc1e848824010c16fc6bb /src/pci.c | |
parent | 868f348533d99b05782cd8bfedb18b9f91b393bc (diff) | |
download | vyatta-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |