If the ‘try_vpd_pages’ flag is set it takes precedence. Parameters struct scsi_device * sdev the struct scsi_device to test Int scsi_device_supports_vpd (struct scsi_device * sdev ) ¶ The only reason to use this is because you need to access theĭevice list in interrupt context. Take a reference on the scsi_device, so the whole loop must be
Iterator that returns each device attached to shost. Iterate over all devices of a host (UNLOCKED) You break out of the loop, you must call scsi_device_put(sdev). Takes a reference on each device and releases it at the end. Parameters sdev the struct scsi_device to use as a cursor shost the struct scsi_host to iterate over Include/scsi/scsi_device.h ¶ shost_for_each_device ( sdev, shost ) ¶
The Linux driver implementer’s API guide.Working with the kernel development community.The Linux kernel user’s and administrator’s guide.