How to get a list of SCSI-Disks in C/C++ under Linux?

833 Views Asked by At

i need to get a list or any other enumerable class with info about any connected SCSI-disks, with info just like /proc/scsi/sg/devices Please help me and thanks in advance

1

There are 1 best solutions below

3
On BEST ANSWER

You've basically named a solution in your question -- just open /proc/scsi/sg/devices and read from it.