Searched refs:read_sysfs (Results 1 – 2 of 2) sorted by relevance
26 static unsigned long read_sysfs(char *str) in read_sysfs() function56 ksm_sysfs[0] = read_sysfs(PATH_KSM "merge_across_nodes"); in mte_ksm_setup()58 ksm_sysfs[1] = read_sysfs(PATH_KSM "sleep_millisecs"); in mte_ksm_setup()60 ksm_sysfs[2] = read_sysfs(PATH_KSM "run"); in mte_ksm_setup()62 ksm_sysfs[3] = read_sysfs(PATH_KSM "max_page_sharing"); in mte_ksm_setup()64 ksm_sysfs[4] = read_sysfs(PATH_KSM "pages_to_scan"); in mte_ksm_setup()79 int cur_count = read_sysfs(PATH_KSM "full_scans"); in mte_ksm_scan()85 cur_count = read_sysfs(PATH_KSM "full_scans"); in mte_ksm_scan()90 read_sysfs(PATH_KSM "pages_shared"), in mte_ksm_scan()91 read_sysfs(PATH_KSM "pages_sharing")); in mte_ksm_scan()[all …]
108 unsigned long read_sysfs(int warn, char *fmt, ...) in read_sysfs() function137 return read_sysfs(ps != getpagesize(), in read_free()212 if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) { in sanity_checks()