1SCSI_INTERNAL_DEVICE(9) SCSI mid layer SCSI_INTERNAL_DEVICE(9)
2
3
4
6 scsi_internal_device_block - internal function to put a device
7 temporarily into the SDEV_BLOCK state
8
10 int scsi_internal_device_block(struct scsi_device * sdev);
11
13 sdev
14 device to block
15
17 Block request made by scsi lldĀ“s to temporarily stop all scsi commands
18 on the specified device. Called from interrupt or normal process
19 context.
20
21 Returns zero if successful or error if not
22
24 This routine transitions the device to the SDEV_BLOCK state (which must
25 be a legal transition). When the device is in this state, all commands
26 are deferred until the scsi lld reenables the device with
27 scsi_device_unblock or device_block_tmo fires. This routine assumes the
28 host_lock is held on entry.
29
31 James Bottomley <James.Bottomley@hansenpartnership.com>
32 Author.
33
34 Rob Landley <rob@landley.net>
35 Author.
36
38Kernel Hackers Manual 2.6. June 2019 SCSI_INTERNAL_DEVICE(9)