I am writing a program which will print host, channel number, id number, lun of a SCSI device.
cat /proc/scsi/scsi
giving the information about it. But i want print it through c program. I'm getting vendor id, device type, revision level... but not lun , bus no etc.
Is there any ioctl
command to get lun, bus, id numbers?