Information regarding Device Tree

Greg KH greg at kroah.com
Mon Jun 2 23:56:31 EDT 2014


On Tue, Jun 03, 2014 at 09:10:54AM +0530, JAYESH TANK wrote:
> Hi All,
>   I would like to write script to get Windows Device Manager like functionality
> to check all the devices present on my Linux machine. What all are the ways to
> get about this, is iterating sysfs is the way? Or is there any other elegant
> way? 

sysfs is the way.

Take a look at the existing tools that do this for examples of how it
can be done (KDE has a tool, there are others floating around...)

good luck,

greg k-h



More information about the Kernelnewbies mailing list