diff options
author | 2014-05-06 11:50:13 +0000 | |
---|---|---|
committer | 2014-05-06 11:50:13 +0000 | |
commit | 512dfaa60ec59661b8e5334d886db1901c2f9faa (patch) | |
tree | 56c3abc3a74ed3e4f91d6ecdc32bb6a587a39596 /lib/libc | |
parent | Explicitly zero out the ibufs before releasing the memory to make sure (diff) | |
download | wireguard-openbsd-512dfaa60ec59661b8e5334d886db1901c2f9faa.tar.xz wireguard-openbsd-512dfaa60ec59661b8e5334d886db1901c2f9faa.zip |
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 'lib/libc')
0 files changed, 0 insertions, 0 deletions