scsi_internal_device_block (9) - Linux Man Pages
scsi_internal_device_block: internal function to put a device temporarily into the SDEV_BLOCK state
scsi_internal_device_block - internal function to put a device temporarily into the SDEV_BLOCK state
int scsi_internal_device_block(struct scsi_device
- device to block
Block request made by scsi lld's to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context.
This routine transitions the device to the SDEV_BLOCK state (which must be a legal transition). When the device is in this state, all commands are deferred until the scsi lld reenables the device with scsi_device_unblock or device_block_tmo fires.
James Bottomley <James.Bottomley [at] hansenpartnership.com>
Rob Landley <rob [at] landley.net>