LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How can I retrieve pci domain from struct pci_dev in pci driver probe? (https://www.linuxquestions.org/questions/linux-kernel-70/how-can-i-retrieve-pci-domain-from-struct-pci_dev-in-pci-driver-probe-4175457035/)

dbrazeau 04-05-2013 06:36 PM

How can I retrieve pci domain from struct pci_dev in pci driver probe?
 
Is there a way I can determine the pci domain from the struct pci_dev passed into a pci driver's probe function?

I can figure out the pci device's bus number via pdev->bus->number, but I cannot figure out how to determine the pci domain number from within the pci driver's probe function.


All times are GMT -5. The time now is 06:54 AM.