Edward Falk wrote on Tuesday, July 12, 2005 5:38 PM > Hi all; what's the proper way to get the scsi_device structure from a > gendisk structure? sd.c uses pointers through scsi_disk, but that > structure is private to sd.c. Will I need to add an access function in > sd.c or something?
If you are sure gendisk points to a scsi disk, then I think you can get scsi_device through gendisk->queue->queuedata. - Ken - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

