dom0: remove obsolete xenfreepages

This commit is contained in:
Marek Marczykowski 2011-10-14 12:29:03 +02:00
父節點 9b3b72cc74
當前提交 097c5331d6
共有 2 個檔案被更改,包括 0 行新增24 行删除

查看文件

@ -1,3 +1,2 @@
qubes_restore
xenfreepages
xenstore-watch

查看文件

@ -1,23 +0,0 @@
#include <xenctrl.h>
#include <stdio.h>
#include <stdlib.h>
struct xen_sysctl_physinfo xphysinfo;
main()
{
#ifdef XENCTRL_HAS_XC_INTERFACE
xc_interface *handle = xc_interface_open(NULL, NULL, 0);
if (!handle) {
#else
int handle = xc_interface_open();
if (handle == -1) {
#endif
perror("xc_interface_open");
exit(1);
}
if (xc_physinfo(handle, &xphysinfo)) {
perror("xc_physinfo");
exit(1);
}
printf("%lld", xphysinfo.free_pages);
return 0;
}