Module Name: src
Committed By: ad
Date: Sat Sep 9 20:13:54 UTC 2023
Modified Files:
src/usr.bin/vmstat: vmstat.c
Log Message:
uidinfo is an SLIST.
To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 src/usr.bin/vmstat/vmstat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/vmstat/vmstat.c
diff -u src/usr.bin/vmstat/vmstat.c:1.257 src/usr.bin/vmstat/vmstat.c:1.258
--- src/usr.bin/vmstat/vmstat.c:1.257 Tue Aug 1 04:20:14 2023
+++ src/usr.bin/vmstat/vmstat.c Sat Sep 9 20:13:54 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.257 2023/08/01 04:20:14 simonb Exp $ */
+/* $NetBSD: vmstat.c,v 1.258 2023/09/09 20:13:54 ad Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001, 2007, 2019, 2020
@@ -71,7 +71,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.257 2023/08/01 04:20:14 simonb Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.258 2023/09/09 20:13:54 ad Exp $");
#endif
#endif /* not lint */
@@ -99,6 +99,7 @@ __RCSID("$NetBSD: vmstat.c,v 1.257 2023/
#include <sys/kernhist.h>
#include <sys/vnode.h>
#include <sys/vnode_impl.h>
+#include <sys/uidinfo.h>
#include <uvm/uvm_extern.h>
#include <uvm/uvm_stat.h>
@@ -1885,12 +1886,6 @@ enum hashtype { /* from <sys/systm.h>
HASH_PSLIST
};
-struct uidinfo { /* XXX: no kernel header file */
- LIST_ENTRY(uidinfo) ui_hash;
- uid_t ui_uid;
- long ui_proccnt;
-};
-
struct kernel_hash {
const char * description; /* description */
int hashsize; /* nlist index for hash size */
@@ -1910,7 +1905,7 @@ struct kernel_hash {
}, {
"user info (uid -> used processes) hash",
X_UIHASH, X_UIHASHTBL,
- HASH_LIST, offsetof(struct uidinfo, ui_hash),
+ HASH_SLIST, offsetof(struct uidinfo, ui_hash),
}, {
"vnode cache hash",
X_VCACHEHASH, X_VCACHETBL,