diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-15 03:42:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-15 03:42:58 +0000 |
commit | d196417615cee2b0bef878d8bece937836f17b1f (patch) | |
tree | 2130f8edd515794a485bb5c3c9f5b54a3ca7f11a /sys/uvm/uvm_meter.c | |
parent | 30fb6d4ee3269e33a51b16f67d27c473cd3a5e3a (diff) |
export kernel uvm_km_pages_free as vm.kmpagesfree; ok tedu, tested jsg
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); } |