From 187e654d9ab8b270eb7ce255f4014e7a97b9298b Mon Sep 17 00:00:00 2001 From: dillon Date: Sat, 11 Jan 2003 07:29:47 +0000 Subject: Make 'sysctl vm.vmtotal' work properly using updated patch from Hiten. (the patch in the PR was stale). PR: kern/5689 Submitted by: Hiten Pandya --- sys/vm/vm_meter.c | 2 +- sys/vm/vm_param.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_meter.c b/sys/vm/vm_meter.c index cc50d7f..ae7850a 100644 --- a/sys/vm/vm_meter.c +++ b/sys/vm/vm_meter.c @@ -237,7 +237,7 @@ vcnt(SYSCTL_HANDLER_ARGS) return(error); } -SYSCTL_PROC(_vm, VM_METER, vmmeter, CTLTYPE_OPAQUE|CTLFLAG_RD, +SYSCTL_PROC(_vm, VM_TOTAL, vmtotal, CTLTYPE_OPAQUE|CTLFLAG_RD, 0, sizeof(struct vmtotal), vmtotal, "S,vmtotal", "System virtual memory statistics"); SYSCTL_NODE(_vm, OID_AUTO, stats, CTLFLAG_RW, 0, "VM meter stats"); diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h index 795157f..959b35c 100644 --- a/sys/vm/vm_param.h +++ b/sys/vm/vm_param.h @@ -76,7 +76,7 @@ /* * CTL_VM identifiers */ -#define VM_METER 1 /* struct vmmeter */ +#define VM_TOTAL 1 /* struct vmtotal */ #define VM_LOADAVG 2 /* struct loadavg */ #define VM_V_FREE_MIN 3 /* cnt.v_free_min */ #define VM_V_FREE_TARGET 4 /* cnt.v_free_target */ @@ -91,7 +91,7 @@ #define CTL_VM_NAMES { \ { 0, 0 }, \ - { "vmmeter", CTLTYPE_STRUCT }, \ + { "vmtotal", CTLTYPE_STRUCT }, \ { "loadavg", CTLTYPE_STRUCT }, \ { "v_free_min", CTLTYPE_INT }, \ { "v_free_target", CTLTYPE_INT }, \ -- cgit v1.1