Vendor and device names in /proc/pci

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

 



(I know that /proc/pci is deprecated, but I still need to support the 2.4 kernels with our driver).

Where do the vendor and device names in /proc/pci come from? When I do "cat /proc/pci", I see something like this:

  Bus  1, device  31, function  0:
    PCI bridge: Intel Corp. 82870P2 P64H2 Hub PCI Bridge (#2) (rev 4).
      Master Capable.  Latency=40.  Min Gnt=34.
  Bus  3, device   1, function  0:
    Co-processor: PCI device 18b8:b001 (rev 1).
      IRQ 48.
      Master Capable.  Latency=32.  Min Gnt=64.

Our hardware is 18b8:b001. Why is it that our company and product name don't show up in that entry, but Intel's does?

My theory is that it's because we're not in drivers/pci/pci.ids when the kernel was compiled. Is that so? Someone told me that there was a call-back function that we can implement in our driver which would provide the textual name whenever someone tries to read /proc/pci, but I can't find any information on that.

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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