Searched refs:numread (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/ |
D | sysfs.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() 51 ssize_t numread; in sysfs_is_cpu_online() local 74 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in sysfs_is_cpu_online() 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 [all …]
|
/kernel/linux/linux-5.10/tools/power/cpupower/lib/ |
D | cpupower.c | 20 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() 50 ssize_t numread; in cpupower_is_cpu_online() local 73 numread = read(fd, linebuf, MAX_LINE_LEN - 1); in cpupower_is_cpu_online() 74 if (numread < 1) { in cpupower_is_cpu_online() 78 linebuf[numread] = '\0'; in cpupower_is_cpu_online()
|
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | khugepaged.c | 126 ssize_t numread; in read_file() local 132 numread = read(fd, buf, buflen - 1); in read_file() 133 if (numread < 1) { in read_file() 138 buf[numread] = '\0'; in read_file() 141 return (unsigned int) numread; in read_file()
|