i need C/C++ library/API at initiator side which can give me the iscsi target details(iqn) when i pass the OS device name or scsi-channel-lun details.
for example input will be "/dev/sdc" or something like "scsi12 Channel 00 Id 0 Lun: 0" and the output should be the corresponding target iqn .
thanks in advance