scsi: Add scsi_vpd_tpg_id()
Implement scsi_vpd_tpg_id() to extract the target port group id and the relative port id from SCSI VPD page 0x83. Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
248d4fe95f
commit
a8aa397858
@@ -416,6 +416,7 @@ static inline int scsi_execute_req(struct scsi_device *sdev,
|
||||
extern void sdev_disable_disk_events(struct scsi_device *sdev);
|
||||
extern void sdev_enable_disk_events(struct scsi_device *sdev);
|
||||
extern int scsi_vpd_lun_id(struct scsi_device *, char *, size_t);
|
||||
extern int scsi_vpd_tpg_id(struct scsi_device *, int *);
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
extern int scsi_autopm_get_device(struct scsi_device *);
|
||||
|
Reference in New Issue
Block a user