Home
last modified time | relevance | path

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

/tools/power/cpupower/utils/helpers/
Dsysfs.c22 ssize_t numread; in sysfs_read_file() local
28 numread = read(fd, buf, buflen - 1); in sysfs_read_file()
29 if (numread < 1) { in sysfs_read_file()
34 buf[numread] = '\0'; in sysfs_read_file()
37 return (unsigned int) numread; in sysfs_read_file()
52 ssize_t numread; in sysfs_is_cpu_online() local
75 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in sysfs_is_cpu_online()
76 if (numread < 1) { in sysfs_is_cpu_online()
80 linebuf[numread] = '\0'; in sysfs_is_cpu_online()
130 ssize_t numread; in sysfs_idlestate_read_file() local
[all …]
/tools/power/cpupower/lib/
Dcpupower.c21 ssize_t numread; in cpupower_read_sysfs() local
27 numread = read(fd, buf, buflen - 1); in cpupower_read_sysfs()
28 if (numread < 1) { in cpupower_read_sysfs()
33 buf[numread] = '\0'; in cpupower_read_sysfs()
36 return (unsigned int) numread; in cpupower_read_sysfs()
51 ssize_t numread; in cpupower_is_cpu_online() local
74 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online()
75 if (numread < 1) { in cpupower_is_cpu_online()
79 linebuf[numread] = '\0'; in cpupower_is_cpu_online()
Dcpuidle.c59 ssize_t numread; in cpuidle_state_read_file() local
68 numread = read(fd, buf, buflen - 1); in cpuidle_state_read_file()
69 if (numread < 1) { in cpuidle_state_read_file()
74 buf[numread] = '\0'; in cpuidle_state_read_file()
77 return (unsigned int) numread; in cpuidle_state_read_file()