title: Is there a Linux equivalent of SetupDiGetClassDevs function
body: <p>I have written a c++ program to search PCI devices in Windows using HDEVINFO objects and the SetupDiGetClassDevs function.</p>
  
  <p>Are there Linux equivalents for these functions? 
  I will be using Kubuntu, so KDE-specific and/or Ubuntu-specific solutions are fine.
  An example piece of code would be even more appreciated ;-)</p>
  
  <p>Thank you</p>