From owner-cvs-all Tue May 28 11:40:31 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id EBF9A37B486; Tue, 28 May 2002 11:39:53 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id EAA10050; Wed, 29 May 2002 04:39:10 +1000 Date: Wed, 29 May 2002 04:42:28 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John Hay Cc: Dag-Erling Smorgrav , , Subject: Re: cvs commit: src/sys/sys tty.h src/sys/kern tty.c In-Reply-To: <200205281530.g4SFUdm90251@zibbi.icomtek.csir.co.za> Message-ID: <20020529043200.I22295-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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