summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi/vmmapi.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-04-25 20:42:21 +0000
committerneel <neel@FreeBSD.org>2013-04-25 20:42:21 +0000
commit4f5865691ed697faad914567f8e6c9a6c1e6cb11 (patch)
tree68719622998d1acce665971d2d9fa4e94aa22ff1 /lib/libvmmapi/vmmapi.c
parent4e9b65bc12036784e379d8920ccaef545812074d (diff)
downloadFreeBSD-src-4f5865691ed697faad914567f8e6c9a6c1e6cb11.zip
FreeBSD-src-4f5865691ed697faad914567f8e6c9a6c1e6cb11.tar.gz
Remove deprecated APIs to get the total and free memory available to vmm.ko.
These APIs were relevant when memory for virtual machine allocation was hard partitioned away from the rest of the system but that is no longer the case. The sysctls that provided this information were garbage collected a while back. Obtained from: NetApp
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
-rw-r--r--lib/libvmmapi/vmmapi.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index 6982ba3..95be94a 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -123,30 +123,6 @@ vm_destroy(struct vmctx *vm)
free(vm);
}
-size_t
-vmm_get_mem_total(void)
-{
- size_t mem_total = 0;
- size_t oldlen = sizeof(mem_total);
- int error;
- error = sysctlbyname("hw.vmm.mem_total", &mem_total, &oldlen, NULL, 0);
- if (error)
- return -1;
- return mem_total;
-}
-
-size_t
-vmm_get_mem_free(void)
-{
- size_t mem_free = 0;
- size_t oldlen = sizeof(mem_free);
- int error;
- error = sysctlbyname("hw.vmm.mem_free", &mem_free, &oldlen, NULL, 0);
- if (error)
- return -1;
- return mem_free;
-}
-
int
vm_get_memory_seg(struct vmctx *ctx, vm_paddr_t gpa, size_t *ret_len)
{
OpenPOWER on IntegriCloud