Note that ADAPTER_REQ_GROW_RESOURCES is called from the completion thread.

This commit is contained in:
bouyer 2001-10-14 21:12:52 +00:00
parent ea29ee7d56
commit eceedc163a

View File

@ -1,4 +1,4 @@
.\" $NetBSD: scsipi.9,v 1.5 2001/09/04 02:51:16 wiz Exp $ .\" $NetBSD: scsipi.9,v 1.6 2001/10/14 21:12:52 bouyer Exp $
.\" .\"
.\" .\"
.\" Copyright (c) 2001 Manuel Bouyer. .\" Copyright (c) 2001 Manuel Bouyer.
@ -331,7 +331,8 @@ ask the adapter to increase resources of the channel (grow
.Va adapt_openings .Va adapt_openings
or or
.Va chan_openings ) .Va chan_openings )
if possible. Support of this feature is optional. if possible. Support of this feature is optional. This request is called from
the kernel completion thread.
.Fa arg .Fa arg
must be ignored. must be ignored.
.It Dv ADAPTER_REQ_SET_XFER_MODE .It Dv ADAPTER_REQ_SET_XFER_MODE
@ -548,11 +549,11 @@ will be called with
.Fa chan .Fa chan
and and
.Fa arg .Fa arg
as arguments, from the channel completion thread. The callback is run at as arguments, from the channel completion thread. The callback is run at
splbio. splbio.
.Fn scsipi_thread_call_callback .Fn scsipi_thread_call_callback
will freeze the channel by one, it's up to the caller to thaw it when will freeze the channel by one, it's up to the caller to thaw it when
appropriate. returns 0 if the callback was properly recorded, or EBUSY if the appropriate. Returns 0 if the callback was properly recorded, or EBUSY if the
channel has already a callback pending. channel has already a callback pending.
.El .El
.Sh EXAMPLES .Sh EXAMPLES