Lines Matching refs:ksm_sysfs
26 struct ksm_sysfs { struct
223 static int ksm_save_def(struct ksm_sysfs *ksm_sysfs) in ksm_save_def() argument
225 if (ksm_read_sysfs(KSM_FP("max_page_sharing"), &ksm_sysfs->max_page_sharing) || in ksm_save_def()
227 ksm_read_sysfs(KSM_FP("merge_across_nodes"), &ksm_sysfs->merge_across_nodes) || in ksm_save_def()
228 ksm_read_sysfs(KSM_FP("sleep_millisecs"), &ksm_sysfs->sleep_millisecs) || in ksm_save_def()
229 ksm_read_sysfs(KSM_FP("pages_to_scan"), &ksm_sysfs->pages_to_scan) || in ksm_save_def()
230 ksm_read_sysfs(KSM_FP("run"), &ksm_sysfs->run) || in ksm_save_def()
232 &ksm_sysfs->stable_node_chains_prune_millisecs) || in ksm_save_def()
233 ksm_read_sysfs(KSM_FP("use_zero_pages"), &ksm_sysfs->use_zero_pages)) in ksm_save_def()
239 static int ksm_restore(struct ksm_sysfs *ksm_sysfs) in ksm_restore() argument
241 if (ksm_write_sysfs(KSM_FP("max_page_sharing"), ksm_sysfs->max_page_sharing) || in ksm_restore()
243 ksm_write_sysfs(KSM_FP("merge_across_nodes"), ksm_sysfs->merge_across_nodes) || in ksm_restore()
244 ksm_write_sysfs(KSM_FP("pages_to_scan"), ksm_sysfs->pages_to_scan) || in ksm_restore()
245 ksm_write_sysfs(KSM_FP("run"), ksm_sysfs->run) || in ksm_restore()
246 ksm_write_sysfs(KSM_FP("sleep_millisecs"), ksm_sysfs->sleep_millisecs) || in ksm_restore()
248 ksm_sysfs->stable_node_chains_prune_millisecs) || in ksm_restore()
249 ksm_write_sysfs(KSM_FP("use_zero_pages"), ksm_sysfs->use_zero_pages)) in ksm_restore()
641 struct ksm_sysfs ksm_sysfs_old; in main()