Help to co-relate the scsi device with dev_t (device num)

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

 



Hello,

I'm writing a kernel code where I need to co-relate the scsi device
with linux dev_t.

I thought that having a scsi_device and then referring the dev_t
number would solve the problem. But the dev_t output received is zero.

scsi_device *sdev = scsi_device_lookup()
tried printing =>  sdev->sdev_dev.devt
tried printing => sdev->sdev_gendev.dev_t

Is the dev_t really set when a driver do a scsi_add_device ?
If yes, Please let me know what i'm doing wrong ?

If not, Please help me as what is right way to find the dev_t for a
given scsi-device.

Thanks,
Vineet
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux