Re: [PATCH] sparc64: Expose mdesc to sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the quick feedback, Dave.

Buses like PCI or USB as well as other data types are exposed in sysfs, not via blobs like /dev/mdesc.

Sysfs has a neat tree structure that allows to discover and browse the system structure. In contrast a binary blob like /dev/mdesc requires interpretation via a script.

The aim of this patch is to ease browsing mdesc and implement utilities like lshw. If you look at lshw sources, you'll see that they make a real huge use of sysfs, the only binary device they use is for DMI tables (via /dev/dmi if present, or by directly accessing mmap'ed physical memory otherwise)

Also, since mdesc is basically a tree it maps well to a filesystem structure like sysfs.

thank you.

-eric
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux