Searched refs:read_text (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.c | 23 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() function 93 ret = read_text(path, buf, len); in cg_read() 204 if (read_text("/proc/self/mounts", buf, sizeof(buf)) <= 0) in cg_find_unified_root() 515 if (read_text("/proc/swaps", buf, sizeof(buf)) <= 0) in is_swap_enabled() 550 read = read_text("/proc/mounts", buf, sizeof(buf)); in proc_mount_contains() 568 ret = read_text(path, buf, size); in proc_read_text()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.c | 20 static ssize_t read_text(const char *path, char *buf, size_t max_len) in read_text() function 94 if (read_text(path, buf, len) >= 0) in cg_read() 197 if (read_text("/proc/self/mounts", buf, sizeof(buf)) <= 0) in cg_find_unified_root() 502 if (read_text("/proc/swaps", buf, sizeof(buf)) <= 0) in is_swap_enabled() 542 return read_text(path, buf, size); in proc_read_text()
|
Completed in 2 milliseconds