Date: Wed, 29 May 2002 04:42:28 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: John Hay <jhay@icomtek.csir.co.za> Cc: Dag-Erling Smorgrav <des@ofug.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/sys/sys tty.h src/sys/kern tty.c Message-ID: <20020529043200.I22295-100000@gamplex.bde.org> In-Reply-To: <200205281530.g4SFUdm90251@zibbi.icomtek.csir.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 28 May 2002, John Hay wrote:
[John Hay didn't write]
> > It looks right. I didn't expect to run into ttys that didn't have an
> > associated device or process. Can you mail me the output of 'pstat -t'?
>
> ###########################
> beast:/home/jhay # pstat -t
> LINE RAW CAN OUT IHIWT ILOWT OHWT LWT COL STATE SESS PGID DISC
> ttyp1 0 0 0 512 448 2052 256 0 OCc 86298 86796 term
> ttyp0 0 0 0 512 448 2052 256 31 OCc 228 234 term
> ...
> 0,0 0 0 0 0 0 0 0 0 - 0 0 term
^^^ old bug, apparently for serial console
pstat on dead kernels is broken for all devices here
> ttyv0 0 0 0 512 448 2052 256 7 OCc 219 219 term
> ###########################
Null pointers are normal for ports that haven't been opened. The surprising
thing is that the pointers aren't garbage for closed ports.
LINE RAW CAN OUT IHIWT ILOWT OHWT LWT COL STATE SESS PGID DISC
ttyp1 0 0 0 512 448 2052 256 0 OCc 1359 1474 term
ttyp0 0 0 0 512 448 2052 256 32 OCc 307 322 term
ttyv7 0 0 0 512 448 2052 256 7 OCc 292 292 term
ttyv6 0 0 0 512 448 2052 256 7 OCc 291 291 term
ttyv5 0 0 0 512 448 2052 256 7 OCc 290 290 term
ttyv4 0 0 0 512 448 2052 256 7 OCc 289 289 term
ttyv3 0 0 0 512 448 2052 256 7 OCc 288 288 term
ttyv2 0 0 0 512 448 2052 256 7 OCc 287 287 term
ttyv1 0 0 0 512 448 2052 256 7 OCc 286 286 term
ttyc0f 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc0e 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc0d 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc0c 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc0b 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc0a 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc09 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc08 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc07 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc06 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc05 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc04 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc03 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc02 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc01 0 0 0 512 448 1296 256 0 - 0 0 term
ttyc00 0 0 0 512 448 1296 256 0 - 0 0 term
I haven't opened any of the above cy ports.
ttyd0 0 0 0 11520 10080 4104 256 0 - 0 0 term
ttyd1 0 0 0 512 448 1296 256 0 - 0 0 term
consolectl 0 0 0 512 448 1296 256 0 - 0 0 term
^^^^^^^^^^
ttyv0 0 0 0 512 448 2052 256 7 OCc 285 285 term
^^^^^ old bugs:
(1) verbose device name messes up the formatting.
(2) consolectl isn't the console. It is just attached to the same tp.
Bruce
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529043200.I22295-100000>
