Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ps Add a K flag to the state information - K is for kern...
details: https://anonhg.NetBSD.org/src/rev/e1e717bef5ef
branches: trunk
changeset: 498413:e1e717bef5ef
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Oct 23 05:54:06 2000 +0000
description:
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.
diffstat:
bin/ps/print.c | 9 ++++++---
bin/ps/ps.1 | 4 +++-
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r ecb61ff90b89 -r e1e717bef5ef bin/ps/print.c
--- a/bin/ps/print.c Mon Oct 23 05:49:05 2000 +0000
+++ b/bin/ps/print.c Mon Oct 23 05:54:06 2000 +0000
@@ -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 @@
*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';
diff -r ecb61ff90b89 -r e1e717bef5ef bin/ps/ps.1
--- a/bin/ps/ps.1 Mon Oct 23 05:49:05 2000 +0000
+++ b/bin/ps/ps.1 Mon Oct 23 05:54:06 2000 +0000
@@ -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 @@
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 ) .
Home |
Main Index |
Thread Index |
Old Index