.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SCSI_INTERNAL_DEVICE_BLOCK" "9" "09 October 2005" "" "" .SH NAME scsi_internal_device_block \- internal function to put a device .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int scsi_internal_device_block (struct scsi_device * \fIsdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIsdev\fB\fR device to block .SH "DESCRIPTION" .PP Block request made by scsi lld's to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context. .PP Returns zero if successful or error if not .SH "DESCRIPTION" .PP Block request made by scsi lld's to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context. .PP Returns zero if successful or error if not .SH "NOTES" .PP 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. This routine assumes the host_lock is held on entry.