[scsi] Generalise iscsi_detached_command() to scsi_detached_command()

This commit is contained in:
Michael Brown
2009-08-09 15:20:46 +01:00
parent 04878ef745
commit 976f12c501
3 changed files with 15 additions and 6 deletions

View File

@@ -44,6 +44,18 @@ block_to_scsi ( struct block_device *blockdev ) {
return container_of ( blockdev, struct scsi_device, blockdev );
}
/**
* Handle SCSI command with no backing device
*
* @v scsi SCSI device
* @v command SCSI command
* @ret rc Return status code
*/
int scsi_detached_command ( struct scsi_device *scsi __unused,
struct scsi_command *command __unused ) {
return -ENODEV;
}
/**
* Issue SCSI command
*