performance of pci_device_get_{vendor, device}_name() in X server startup

Greg KH greg at
Tue Jun 8 17:04:59 PDT 2010

On Wed, Jun 09, 2010 at 06:37:43AM +0700, Mikhail Gusarov wrote:
>  RB> I've considered this, too.  I think it's substantially more work,
>  RB> and I'd worry that the cost/benefit ratio wasn't very good.  I
>  RB> suspect the best way to thread the needle would include fiddling
>  RB> with the "pciutils" package that provides the "pci.ids" file.
> Actual source is
> libpci and libpciaccess just read this file. Libraries might as well
> convert it to other format on first access or use pre-converted file.
>  RB> I'd be interested in hearing if you know something about why the
>  RB> cost is more worth it, because I agree that this is technically the
>  RB> "right" way to do it.
> It's basically the cache discussed in another thread, expanded to
> contain all entries from pci.ids :) Hence the amount of work should be
> approximately the same.

Ok, I'm coming in late, but why in the world would the x server ever
care about the pci.ids file?  Why would the mapping from id to string be
needed anywhere here?


greg k-h

More information about the xorg-devel mailing list