Home | History | Annotate | Download | only in cpufeatures

Lines Matching refs:buffer

39  *          Dynamically allocate the buffer that hold the content
122 char buffer[256];
131 int ret = read(fd, buffer, sizeof buffer);
147 /* Read the content of /proc/cpuinfo into a user-provided buffer.
153 read_file(const char* pathname, char* buffer, size_t buffsize)
164 int ret = read(fd, buffer + count, buffsize - count);
188 extract_cpuinfo_field(const char* buffer, int buflen, const char* field)
191 const char* bufend = buffer + buflen;
197 p = buffer;
203 if (p == buffer || p[-1] == '\n')
221 /* Copy the line into a heap-allocated buffer */
558 D("cpuinfo buffer could not be allocated");