Re: Vendor and device names in /proc/pci

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

 



On Wed, Mar 30, 2005 at 06:19:00PM -0600, Timur Tabi wrote:
> My theory is that it's because we're not in drivers/pci/pci.ids when the 
> kernel was compiled.  Is that so?

Yes, that is why.

> 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.

Fill in the pci_dev->pretty_name field, in the proper format (look in
drivers/pci/names.c::pci_name_device() for how to do this) and it will
work.

But that's a hack, just update the pci.ids file :)

Also, 5 minutes looking at how the name is created in the pci code would
have told you how to do this...

thanks,

greg k-h

--
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