.\" 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 "FC_REMOTE_PORT_BLOCK" "9" "09 October 2005" "" ""
.SH NAME
fc_remote_port_block \- temporarily block any scsi traffic to a remote port.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int fc_remote_port_block (struct fc_rport * \fIrport\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIrport\fB\fR
remote port to be blocked.
.SH "DESCRIPTION"
.PP
scsi lldd's with a FC transport call this routine to temporarily stop
all scsi traffic to a remote port. If the port is not a SCSI target,
no action is taken. If the port is a SCSI target, all attached devices
are placed into a SDEV_BLOCK state and a timer is started. The timer is
represents the maximum amount of time the port may be blocked. If the
timer expires, the port is considered non-existent and the attached
scsi devices will be removed.
.PP
Called from interrupt or normal process context.
.PP
Returns zero if successful or error if not
.SH "NOTES"
.PP
This routine assumes no locks are held on entry.
.PP
The timeout and timer types are extracted from the fc transport
attributes from the caller's rport pointer.