pci: introduce helpers for device name parsing/update
[dpdk.git] / lib / librte_eal / common / eal_private.h
index ca1aec6..431d6c2 100644 (file)
@@ -129,6 +129,19 @@ int rte_eal_pci_init(void);
 struct rte_pci_driver;
 struct rte_pci_device;
 
+/**
+ * Update a pci device object by asking the kernel for the latest information.
+ *
+ * This function is private to EAL.
+ *
+ * @param addr
+ *     The PCI Bus-Device-Function address to look for
+ * @return
+ *   - 0 on success.
+ *   - negative on error.
+ */
+int pci_update_device(const struct rte_pci_addr *addr);
+
 /**
  * Unbind kernel driver for this device
  *