Linux api for device description?
tom.horsley at att.net
Sat Jul 12 23:37:08 UTC 2008
On Sat, 12 Jul 2008 19:11:35 -0400
Tom Horsley <tom.horsley at att.net> wrote:
> Before I resort to digging up the source code, does anyone
> happen to know how to get from a device name like "/dev/dvd"
> to a description like "Toshiba Model XYZ CDRW"?
I found it! It isn't in /proc, it is in /sys. If I have
a device like /dev/sda, I can look in /sys/block/sda/device/
for the "vendor" and "model" files to get the info I want.
More information about the fedora-list