From owner-man-jp-reviewer@jp.freebsd.org  Sat Dec 25 09:44:59 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id JAA58318;
	Sat, 25 Dec 1999 09:44:59 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from mail.ocs.drexel.edu (mail.irt.drexel.edu [129.25.3.58])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id JAA58313
	for <man-jp-reviewer@jp.freebsd.org>; Sat, 25 Dec 1999 09:44:58 +0900 (JST)
	(envelope-from st96yb9t@drexel.edu)
Received: from [10.0.0.11] (adsl-151-197-17-59.bellatlantic.net)
 by mail.ocs.drexel.edu (Sun Internet Mail Server sims.3.5.1999.03.02.17.58.p5)
 with ESMTP id <0FN900BGFU0BOR@mail.ocs.drexel.edu> for
 man-jp-reviewer@jp.freebsd.org; Fri, 24 Dec 1999 19:43:25 -0500 (EST)
Date: Fri, 24 Dec 1999 19:49:07 -0500
From: Yoshihiro Ota <st96yb9t@drexel.edu>
In-reply-to: <19991224012534F.k-horik@yk.rim.or.jp>
To: man-jp-reviewer@jp.freebsd.org
Message-id: <0FN900BGGU0COR@mail.ocs.drexel.edu>
MIME-version: 1.0
X-Mailer: Macintosh Eudora Pro Version 3.1.1-J
Content-type: text/plain; charset=ISO-2022-JP
Content-transfer-encoding: 7bit
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: man-jp-reviewer 1851
Subject: [man-jp-reviewer 1851] Re: ng_tty.8
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: st96yb9t@drexel.edu

>-The node supports an optional ``hot character.'' If set to non-zero, incoming
>-data from the tty device is queued until this character is seen.
>-This avoids sending lots of mbufs containing a small number of bytes,
>-but introduces potentially infinite latency.
>-The default hot character is 0x7e, consistent with
>+$B$H8F$P$l$kC10l$N%U%C%/$r;}$A$^$9!#(J
>+tty $B%G%P%$%9>e$G<u?.$5$l$kF~NO%P%$%H$O!"K\%U%C%/$+$iAw=P$5$l!"(J

+tty $B%G%P%$%9>e$G<u?.$5$l$kF~NO%P%$%H$O!"$3$N%U%C%/$+$iAw=P$5$l!"(J


> .Dv hook
>-being connected to a
>+$B>e$G<u?.$5$l$k%U%l!<%`$O(J tty $B%G%P%$%9$+$iAw=P$5$l$^$9!#(J
>+$B$I$A$i$NJ}8~$K$*$$$F$b!"%G!<%?$N=$@5$O9T$o$l$^$;$s!#(J
>+$B2s@~5,Ls$,(J tty $B$K%$%s%9%H!<%k$5$l$F$$$k4V$O!"(J
>+$BDL>o$NFI$_9~$_$H=q$-9~$_$NA`:n$OMxMQ$G$-$:!"(J
>+.Er EIO
>+$B$rJV$7$^$9!#(J
>+.Pp
>+$BK\%N!<%I$O!"%*%W%7%g%s$N!V%[%C%HJ8;z(J ``hot character''$B!W$r%5%]!<%H$7$^$9!#(J
>+$B$3$l$rHs(J 0 $B$K@_Dj$9$k$H!"(Jtty $B%G%P%$%9$+$i$NF~NO%G!<%?$O!"(J
>+$B$3$NJ8;z$,E~Ce$9$k$^$G%-%e!<$5$l$^$9!#(J

+$B$3$NJ8;z$,F~NO$5$l$k$^$GAw?.$5$l$^$;$s!#(J

$B$3$N$[$&$,!"F|K\8l$H$7$F<+A3$G$7$g$&!#(J


>+$B$3$l$K$h$j!">/?t%P%$%H$r4^$`B??t$N(J mbuf $B$NAw?.$rHr$1$i$l$^$9$,!"(J
>+$B@x:_E*$JL58BCY1d$rF3F~$7$F$7$^$$$^$9!#(J

+$BL58BCY1d$r5/$3$7$F$7$^$&2DG=@-$b$"$j$^$9!#(J

>+$B%G%U%)%k%H$N%[%C%HJ8;z$O(J 0x7e $B$G$"$j!"(J
> .Xr ng_async 8
>-type node. The hot character has no effect on the transmission of data.
>+$B%?%$%W%N!<%I$K@\B3$5$l$k(J
>+.Dv hook
>+$B$H0l4S@-$,$"$j$^$9!#(J
>+$B%[%C%HJ8;z$O!"Aw?.%G!<%?$X$N1F6A$r;}$A$^$;$s!#(J
> .Pp
>-The node will attempt to give itself the same netgraph name as the name
>-of the tty device.
>-In any case, information about the node is available via the netgraph
>+$BK\%N!<%I$O!"(Jtty $B%G%P%$%9$HF1$8(J netgraph $BL>$r!"<+8J$KM?$($h$&$H$7$^$9!#(J
>+$B$$$+$J$k>l9g$G$b!"K\%N!<%I$N>pJs$O!"(Jnetgraph $B$N(J

+$B$$$+$J$k>l9g$G$b!"%N!<%I$N>pJs$O!"(Jnetgraph $B$N(J


> .Xr ioctl 2
>-command
>-.Dv NGIOCGINFO .
>-This command returns a
>-.Dv "struct nodeinfo"
>-similar to the
>+$B%3%^%s%I(J
>+.Dv NGIOCGINFO
>+$B$GMxMQ2DG=$G$9!#(J
>+$BK\%3%^%s%I$O!"(J
> .Dv NGM_NODEINFO
>-netgraph control message.
>-.Sh HOOKS
>-This node type supports the following hooks:
>+netgraph $B@)8f%a%C%;!<%8$HF1MM$N!"C10l$N(J

+netgraph $B@)8f%a%C%;!<%8$K;w$?(J


>-This command takes an integer argument and sets the hot character
>-from the lower 8 bits. A hot character of zero disables queueing,
>-so that all received data is forwarded immediately.
>+$BK\%3%^%s%I$O!"C10l$N@0?t0z?t$r<h$j!"(J
>+$B2<0L(J 8 $B%S%C%H$+$i%[%C%HJ8;z$r@_Dj$7$^$9!#(J
>+$B%[%C%HJ8;z(J 0 $B$O!"%-%e!<%$%s%0$rL58z$K$7$^$9$N$G!"(J
>+$BA4<u?.%G!<%?$OB(:B$KE>Aw$5$l$^$9!#(J

>+$B%[%C%HJ8;z(J 0 $B$O!"A4<u?.%G!<%?$rB(:B$KE>Aw$5$;$^$9!#(J


>-The serial driver code also has a notion of a ``hot character.''
>-Unfortunately, this value is statically defined in terms of the
>-line discipline and cannot be changed.
>-Therefore, if a hot character other than 0x7e (the default) is set for the
>+$B@)8f%a%C%;!<%8$OL58z$G$"$j!">o$K%(%i!<(J
>+.Er EOPNOTSUPP
>+$B$rJV$7$^$9!#(J
>+.Sh $B%P%0(J
>+$B%7%j%"%k%I%i%$%P%3!<%I$b$^$?!V%[%C%HJ8;z!W$N35G0$r;}$A$^$9!#(J

>+$BIT9,$J$3$H$K!"(J

$B$3$N(JUnfortunately$B$NLu$O$$$i$J$$$H;W$$$^$9!#(J


>+$B$3$NCM$O2s@~5,Ls$N$b$H$K@EE*$KDj5A$5$l$F$*$j!"JQ99IT2DG=$G$9!#(J

+$B$3$NCM$O2s@~5,Ls$N$b$H$K@EE*$KDj5A$5$l$F$$$k$?$a!"JQ99IT2DG=$G$9!#(J

$B$3$N$[$&$,<+A3$JF|K\8l$@$H;W$$$^$9!#(J



$B$"$H!"0J2<$N$h$&$K2?2s$+=P$F$/$k(Jinstall$B$NLu$O;HMQ$9$k$H$$$&0UL#(J
$B$G;H$o$l$F$$$k$h$&$K8+$($^$9!#$b$7!"%*%W%7%g%s$J$I$K$h$C$F0U?^(J
$BE*$K%3%s%H%m!<%k=PMh$k$N$@$C$?$i(Jinstall$B$O;HMQCf$NJ}$,$$$$$H;W$$(J
$B$^$9!#(Juninstall$B$@$C$?$i!"JD$8$k$+=*N;$+$J!)!c2?$,E,Ev$G$7$g$&!)(J

>-No modification to the data is performed in either direction.
>-While the line discipline is installed on a tty, the normal
>-read and write operations are unavailable, returning
>-.Er EIO .
>+$B$I$A$i$NJ}8~$K$*$$$F$b!"%G!<%?$N=$@5$O9T$o$l$^$;$s!#(J
>+$B2s@~5,Ls$,(J tty $B$K%$%s%9%H!<%k$5$l$F$$$k4V$O!"(J
>+$BDL>o$NFI$_9~$_$H=q$-9~$_$NA`:n$OMxMQ$G$-$:!"(J
>+.Er EIO
>+$B$rJV$7$^$9!#(J


>-This node shuts down when the corresponding device is closed
>-(or the line discipline is uninstalled on the device).
>-The
>+$B2<0L(J 8 $B%S%C%H$K8=:_$N%[%C%HJ8;z$r3JG<$7$?!"C10l@0?t$rJV$7$^$9!#(J
>+.Sh $B%7%c%C%H%@%&%s(J
>+$BK\%N!<%I$O!"BP1~$9$k%G%P%$%9$,%/%m!<%:$5$l$?$H$-(J
>+($B$^$?$O%G%P%$%9>e$+$i2s@~5,Ls$,%"%s%$%s%9%H!<%k$5$l$?$H$-(J) $B$K!"(J
>+$B%7%c%C%H%@%&%s$7$^$9!#(J


$B$U$H5?Ld$K;W$C$?$N$G$9$,!"1Q8l$rD>LuE*$KD>$7$F$$$C$?$[$&$,$$$$$N(J
$B$G$7$g$&$+!#$=$l$H$b!"<+A3$JF|K\8l$K$J$kMM$K$7$?$[$&$,$$$$$N$G$7$g(J
$B$&$+!#(J

$BA0<T$@$H!":FLu$dADFI$N;~$KJ,$+$j$d$9$$$+$b$7$l$J$$$G$9$,!"$$$C$Q$s(J
$B$NJ}$,FI$s$@$H$-$KJ,$+$j$:$i$/$J$k$G$7$g$&!#(J

$B8e<T$@$H!"5U$K$J$j$^$9$M!#(J

$B<+J,$G$O8e<T$r?4$,$1$F$$$k$D$b$j$G$9$,!"3'$5$s$O$I$&$G$7$g$&!)(J
$B$^$?$O!"(Jman-jp$B$G7h$^$j$,$"$k$N$G$9$+!)(J


