Searched refs:read_sysfs (Results 1 – 3 of 3) sorted by relevance
26 static unsigned long read_sysfs(char *str) in read_sysfs() function59 ksm_sysfs[0] = read_sysfs(PATH_KSM "merge_across_nodes"); in mte_ksm_setup()61 ksm_sysfs[1] = read_sysfs(PATH_KSM "sleep_millisecs"); in mte_ksm_setup()63 ksm_sysfs[2] = read_sysfs(PATH_KSM "run"); in mte_ksm_setup()65 ksm_sysfs[3] = read_sysfs(PATH_KSM "max_page_sharing"); in mte_ksm_setup()67 ksm_sysfs[4] = read_sysfs(PATH_KSM "pages_to_scan"); in mte_ksm_setup()82 int cur_count = read_sysfs(PATH_KSM "full_scans"); in mte_ksm_scan()88 cur_count = read_sysfs(PATH_KSM "full_scans"); in mte_ksm_scan()93 read_sysfs(PATH_KSM "pages_shared"), in mte_ksm_scan()94 read_sysfs(PATH_KSM "pages_sharing")); in mte_ksm_scan()[all …]
91 unsigned long read_sysfs(int warn, char *fmt, ...) in read_sysfs() function120 return read_sysfs(ps != getpagesize(), in read_free()195 if (read_sysfs(0, "/proc/sys/kernel/shmmax") < NUM_PAGES * largest) { in sanity_checks()
727 static unsigned int read_sysfs(const char *path, char *buf, size_t buflen) in read_sysfs() function858 if (!read_sysfs(path, linebuf, 3)) in get_epb()