How to determine cdrom devices
Hi,
Does anybody know, how to determine cdrom devices (/dev/hdb, /dev/scd0, etc.) via C/C++? Thx in advance. --Michal |
You can use the /proc fs for this:
$ cat ide/ide0/hdb/driver ide-disk version 1.10 $ cat ide/ide1/hdd/driver ide-cdrom version 4.59 There might be a better file to use in there. Have a look around :) |
All times are GMT -5. The time now is 11:22 PM. |