Searched refs:numread (Results 1 – 6 of 6) sorted by relevance
/openbmc/linux/tools/power/cpupower/utils/helpers/ |
H A D | sysfs.c | 21 ssize_t numread; in sysfs_read_file() local 28 if (numread < 1) { in sysfs_read_file() 33 buf[numread] = '\0'; in sysfs_read_file() 36 return (unsigned int) numread; in sysfs_read_file() 51 ssize_t numread; in sysfs_is_cpu_online() local 75 if (numread < 1) { in sysfs_is_cpu_online() 79 linebuf[numread] = '\0'; in sysfs_is_cpu_online() 129 ssize_t numread; in sysfs_idlestate_read_file() local 139 if (numread < 1) { in sysfs_idlestate_read_file() 144 buf[numread] = '\0'; in sysfs_idlestate_read_file() [all …]
|
/openbmc/linux/tools/power/cpupower/lib/ |
H A D | cpupower.c | 26 ssize_t numread; in cpupower_read_sysfs() local 33 numread = read(fd, buf, buflen - 1); in cpupower_read_sysfs() 34 if (numread < 1) { in cpupower_read_sysfs() 39 buf[numread] = '\0'; in cpupower_read_sysfs() 42 return (unsigned int) numread; in cpupower_read_sysfs() 78 ssize_t numread; in cpupower_is_cpu_online() local 101 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online() 102 if (numread < 1) { in cpupower_is_cpu_online() 106 linebuf[numread] = '\0'; in cpupower_is_cpu_online()
|
H A D | cpuidle.c | 58 ssize_t numread; in cpuidle_state_read_file() local 67 numread = read(fd, buf, buflen - 1); in cpuidle_state_read_file() 68 if (numread < 1) { in cpuidle_state_read_file() 73 buf[numread] = '\0'; in cpuidle_state_read_file() 76 return (unsigned int) numread; in cpuidle_state_read_file()
|
H A D | powercap.c | 21 ssize_t numread; in sysfs_read_file() local 27 numread = read(fd, buf, buflen - 1); in sysfs_read_file() 28 if (numread < 1) { in sysfs_read_file() 33 buf[numread] = '\0'; in sysfs_read_file() 36 return (unsigned int) numread; in sysfs_read_file()
|
/openbmc/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 729 ssize_t numread; in read_sysfs() local 736 numread = read(fd, buf, buflen - 1); in read_sysfs() 737 if (numread < 1) { in read_sysfs() 742 buf[numread] = '\0'; in read_sysfs() 745 return (unsigned int) numread; in read_sysfs()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | khugepaged.c | 167 ssize_t numread; in read_file() local 173 numread = read(fd, buf, buflen - 1); in read_file() 174 if (numread < 1) { in read_file() 179 buf[numread] = '\0'; in read_file() 182 return (unsigned int) numread; in read_file()
|