[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
	I am trying to write a module to scan PCI devices based on Vendor
Id and Device Id. I am trying to find the device (returned by
pci_find_device) and  access the pci_dev fields(like
irq). 
	Compilations is giving problems.


CODE goes here..
  	struct pci_dev *d=NULL;
	int irq;
      do{
                d=(struct pci_dev*)pci_find_device(VENDOR_ID,DEVICE_ID,d);
                count++;
        } while (d!=NULL);

	irq= d->irq; // Compilation error here


With regards
gcr

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux