search for: _linux_balloon_stat_sysfs

Displaying 1 result from an estimated 1 matches for "_linux_balloon_stat_sysfs".

2008 Nov 14
0
[PATCH] tools: use sysfs interface to balloon driver if present
...'limit'' : ''Xen hard limit'' } - PROC_XEN_BALLOON = ''/proc/xen/balloon'' f = file(PROC_XEN_BALLOON, ''r'') try: for line in f: @@ -61,6 +63,29 @@ return None finally: f.close() + +def _linux_balloon_stat_sysfs(label): + sysfiles = { ''target'' : ''target_kb'', + ''current'' : ''info/current_kb'', + ''low-balloon'' : ''info/low_kb'', + ''hig...