mem/lib: add vm tunable files set/get func
This patch adds set/get functions which allow tests to handle files
under /proc/sys/vm/.
Some files are exceptions though:
lowmem_reserve_ratio: contains 3 values which cannot be get/set values
by using these functions;
compact_memory: is a write-only file. When using set function, check
parameter must be set to 0 and get function cannot be used to read this
file.
Signed-off-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
2 files changed