diff options
Diffstat (limited to 'sys/uvm/uvm_meter.c')
-rw-r--r-- | sys/uvm/uvm_meter.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/uvm/uvm_meter.c b/sys/uvm/uvm_meter.c index 007921d85a2..80291539872 100644 --- a/sys/uvm/uvm_meter.c +++ b/sys/uvm/uvm_meter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_meter.c,v 1.23 2007/10/10 15:53:53 art Exp $ */ +/* $OpenBSD: uvm_meter.c,v 1.24 2007/12/15 03:42:57 deraadt Exp $ */ /* $NetBSD: uvm_meter.c,v 1.21 2001/07/14 06:36:03 matt Exp $ */ /* @@ -137,6 +137,7 @@ uvm_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) struct vmtotal vmtotals; int rv, t; struct _ps_strings _ps = { PS_STRINGS }; + extern int uvm_km_pages_free; switch (name[0]) { case VM_SWAPENCRYPT: @@ -218,6 +219,9 @@ uvm_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) case VM_USPACE: return (sysctl_rdint(oldp, oldlenp, newp, USPACE)); + case VM_KMPAGESFREE: + return (sysctl_rdint(oldp, oldlenp, newp, uvm_km_pages_free)); + default: return (EOPNOTSUPP); } |