Add a K flag to the state information - K is for kernel thread or system

process (ie, P_SYSTEM set in p_flag).  The L flag (locked in core) is
only used for non-P_SYSTEM processes.
This commit is contained in:
simonb 2000-10-23 05:54:06 +00:00
parent ade1f640e1
commit 0a7d3a1ff5
2 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: print.c,v 1.56 2000/06/29 06:27:33 mrg Exp $ */
/* $NetBSD: print.c,v 1.57 2000/10/23 05:54:06 simonb Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#else
__RCSID("$NetBSD: print.c,v 1.56 2000/06/29 06:27:33 mrg Exp $");
__RCSID("$NetBSD: print.c,v 1.57 2000/10/23 05:54:06 simonb Exp $");
#endif
#endif /* not lint */
@ -401,7 +401,10 @@ state(k, ve, mode)
*cp++ = 'E';
if (flag & P_PPWAIT)
*cp++ = 'V';
if ((flag & P_SYSTEM) || k->p_holdcnt)
if (flag & P_SYSTEM)
*cp++ = 'K';
/* system process might have this too, don't need to double up */
else if (k->p_holdcnt)
*cp++ = 'L';
if (k->p_eflag & EPROC_SLEADER)
*cp++ = 's';

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ps.1,v 1.38 2000/08/28 13:06:42 nathanw Exp $
.\" $NetBSD: ps.1,v 1.39 2000/10/23 05:54:06 simonb Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -334,6 +334,8 @@ from
for example, a LISP interpreter in a garbage collect).
.It E
The process is trying to exit.
.It K
The process is a kernel thread or system process.
.It L
The process has pages locked in core (for example, for raw
.Tn I/O ) .