From 5188e4d93b4dc2896e04d65136f93681f38e286c Mon Sep 17 00:00:00 2001 From: dlg Date: Tue, 12 Aug 2014 01:05:46 +0000 Subject: [PATCH] bring back r1.135: matthew@ noticed i wasnt populating npages in the kinfo_pool sent to userland. --- sys/kern/subr_pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 72ece2edb3d..850d0f0b94e 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.142 2014/08/12 01:01:11 dlg Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.143 2014/08/12 01:05:46 dlg Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -1464,6 +1464,7 @@ sysctl_dopool(int *name, u_int namelen, char *oldp, size_t *oldlenp) pi.pr_size = pp->pr_size; pi.pr_pgsize = pp->pr_alloc->pa_pagesz; pi.pr_itemsperpage = pp->pr_itemsperpage; + pi.pr_npages = pp->pr_npages; pi.pr_minpages = pp->pr_minpages; pi.pr_maxpages = pp->pr_maxpages; pi.pr_hardlimit = pp->pr_hardlimit; -- 2.20.1