Results of calling FindDeviceStringMatch

David Zeuthen david at fubar.dk
Mon Jun 11 09:01:51 PDT 2007


On Fri, 2007-06-08 at 16:25 -0400, Kelly wrote:
> I'm writing a program to query HAL and ask for metadata on certain devices, 
> but I noticed that FindDeviceStringMatch only works if the property in 
> question is a string; if it is an int, then FindDeviceStringMatch returns an 
> empty list.  Is this an error, or a limitation, or something?

As Richard said, it's only designed to work with strings.

> Also, I notice that the spec doesn't mention what the numbers correspond to in 
> pci.device_class.  Is there a list somewhere?

PCI device classes are defined in the PCI specs. Look at the end of
pci.ids - depending on the distro it may be installed in

 /usr/share/hwdata/pci.ids

or maybe somewhere else.

     David




More information about the hal mailing list