.\" 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_UNBLOCK" "9" "09 October 2005" "" ""
.SH NAME
scsi_internal_device_unblock \- resume a device after a block request
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int scsi_internal_device_unblock (struct scsi_device * \fIsdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsdev\fB\fR
device to resume
.SH "DESCRIPTION"
.PP
Called by scsi lld's or the midlayer to restart the device queue
for the previously suspended scsi 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_RUNNING state
(which must be a legal transition) allowing the midlayer to
goose the queue for this device. This routine assumes the
host_lock is held upon entry.