working with pciutils-2.2.4

Mike Frysinger vapier at gentoo.org
Wed Jun 20 23:31:00 PDT 2007


On Monday 18 June 2007, Dan Nicholson wrote:
> On 6/18/07, Mike Frysinger <vapier at gentoo.org> wrote:
> > On Monday 18 June 2007, David Zeuthen wrote:
> > > Right, TBH I don't really see any point in using a gzipped pci.ids file
> > > at all; it's a trade-off where you trade disk space for dirty memory
> > > usage and as such it doesn't make sense on neither embedded nor desktop
> > > systems since you're much more interested in keeping memory use down on
> > > both such systems vs. saving around 300-400k of disk space...
> >
> > perhaps, but that's the direction pciutils has gone ... so something like
> > "if pci.ids.gz exists, then decompress it into a cache file and mmap
> > that" would be the direction for hal to go ?
>
> I think the issue more is that that's what pciutils does out of the
> box. In Linuxfromscratch, we haven't updated to pciutils-2.2.4
> specifically for this issue. If you install pciutils-2.2.4 without any
> previous pci.ids on your machine, all you'll ever have is pci.ids.gz
> and hald won't be happy. And if you do have an old pci.ids, that's not
> what update-pciids is going to update and it's not what will be used
> by lspci. Unless you disable the compression completely at build time.
>
> Is there any reason not use libpci? It's already being used by one of
> the addons. AFAIK, the API is the same whether compression is used or
> not, but I'm not a programmer. Is it because of the cache and mmap, or
> some other reason?

what an obvious solution that never occurred to me :)

patch attached ... note, i dont actually use hal, so i have no idea how to 
runtime test it
-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/20070621/5e9c7c65/attachment.pgp 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-use-libpci.patch.zip
Type: application/x-zip
Size: 3753 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070621/5e9c7c65/attachment.bin 


More information about the hal mailing list