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