Re: Linux api for device description?

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


On Sat, 12 Jul 2008 19:11:35 -0400
Tom Horsley <[email protected]> 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.

fedora-list mailing list
[email protected]
To unsubscribe:

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux