summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_extern.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-06 11:50:15 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-06 11:50:15 +0000
commit873b8ee4b246e0ed9a9e8709c6d072a3c7a5fc1b (patch)
tree2c2afe5a8adf7da08c0b2873e7f88b808c6b9873 /sys/uvm/uvm_extern.h
parentae89337bd95668465fe8cd13876480a5184df039 (diff)
Include <sys/vmmeter.h> directly instead of relying on it being
pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private function. The preferred way to get memory stats is through the VM_UVMEXP sysctl(3) since VM_METER is just a wrapper on top of it. In the kernel, use `uvmexp' directly instead of uvm_total(). This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h> to give some more time to port maintainers to fix their ports. ok guenther@ as part of a larger diff.
Diffstat (limited to 'sys/uvm/uvm_extern.h')
-rw-r--r--sys/uvm/uvm_extern.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index d6eae9c297f..4dd4ee8bb54 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_extern.h,v 1.113 2014/05/03 22:44:36 guenther Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.114 2014/05/06 11:50:14 mpi Exp $ */
/* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */
/*
@@ -484,7 +484,6 @@ struct loadavg;
struct proc;
struct pmap;
struct vmspace;
-struct vmtotal;
struct mount;
struct vnode;
struct core;
@@ -678,7 +677,6 @@ void uvmspace_share(struct proc *, struct proc *);
void uvm_meter(void);
int uvm_sysctl(int *, u_int, void *, size_t *,
void *, size_t, struct proc *);
-void uvm_total(struct vmtotal *);
/* uvm_mmap.c */
int uvm_mmap(vm_map_t, vaddr_t *, vsize_t,