Re: map gendisk (or blockdev) -> scsi_device

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

 




You should revisit your code to not need access to the scsi_device
structure, and follow the layering of the block and scsi subsystems.

Maybe I should explain what I'm trying to do here.

Some of our software reads some of the values in /proc/ide/hda/. We're porting this facility to libata-based drivers in 2.6 and moving it to /sysfs/block/sda/. The sysfs show() functions will be given pointers to gendisk structures but will need to obtain information from the associated scsi_device structure.

Does anybody have any suggestions as to the "right" way to proceed?


meta:

I understand the layering of block vs scsi and so on, but I wonder why there's so much isolation in the kernel. Why should it be impossible to obtain the gendisk structure from the scsi_device structure, or to obtain the block_device structure from the gendisk?

  -ed falk

-
: 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