Using libpci for reading PCI vendor/device/etc

Mike Frysinger vapier at gentoo.org
Sat Jun 23 08:58:03 PDT 2007


On Friday 22 June 2007, Daniel Drake wrote:
> The plaintext parsing approach doesn't use any dirty memory or the heap.
> pcilib approach uses heap dirty memory, and memory usage is slightly
> (but not significantly) higher. (I don't know exactly what the
> difference between clean and dirty memory is, so I stop my comments there)

which could also be addressed by making the pci ids code more adaptive ... 
scrub pci_ids_init() and have ids_find_pci() call it as needed

after a timeout registered by ids_find_pci(), pci_ids_free() would be called 
to clean it all out and the process would repeat ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/hal/attachments/20070623/407e78a5/attachment.pgp 


More information about the hal mailing list