Home
last modified time | relevance | path

Searched refs:numread (Results 1 – 6 of 6) sorted by relevance

/linux-6.3-rc2/tools/power/cpupower/utils/helpers/
A Dsysfs.c21 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 …]
/linux-6.3-rc2/tools/power/cpupower/lib/
A Dcpupower.c19 ssize_t numread; in cpupower_read_sysfs() local
26 numread = read(fd, buf, buflen - 1); in cpupower_read_sysfs()
27 if (numread < 1) { in cpupower_read_sysfs()
32 buf[numread] = '\0'; in cpupower_read_sysfs()
35 return (unsigned int) numread; in cpupower_read_sysfs()
71 ssize_t numread; in cpupower_is_cpu_online() local
94 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online()
95 if (numread < 1) { in cpupower_is_cpu_online()
99 linebuf[numread] = '\0'; in cpupower_is_cpu_online()
A Dcpuidle.c58 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()
A Dpowercap.c21 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()
/linux-6.3-rc2/tools/power/x86/x86_energy_perf_policy/
A Dx86_energy_perf_policy.c729 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()
/linux-6.3-rc2/tools/testing/selftests/mm/
A Dkhugepaged.c176 ssize_t numread; in read_file() local
182 numread = read(fd, buf, buflen - 1); in read_file()
183 if (numread < 1) { in read_file()
188 buf[numread] = '\0'; in read_file()
191 return (unsigned int) numread; in read_file()

Completed in 21 milliseconds