Lines Matching refs:kbuf
110 struct kbuffer *kbuf;
153 kbuf = kbuffer_alloc(KBUFFER_ENDIAN_SAME_AS_HOST,
155 if (!kbuf) {
159 ret = kbuffer_load_subbuffer(kbuf, buf);
165 if (kbuffer_subbuffer_size(kbuf) > st.st_size) {
167 kbuffer_subbuffer_size(kbuf), st.st_size);
171 ret = kbuffer_missed_events(kbuf);
179 event = kbuffer_read_event(kbuf, &ts);
181 record_size = kbuffer_curr_size(kbuf);
182 offset = kbuffer_curr_offset(kbuf);
183 index = kbuffer_curr_index(kbuf);
184 size = kbuffer_event_size(kbuf);
190 event = kbuffer_next_event(kbuf, NULL);
198 event = kbuffer_read_at_offset(kbuf, save_offset, &ts);
203 record_size = kbuffer_curr_size(kbuf);
204 offset = kbuffer_curr_offset(kbuf);
205 index = kbuffer_curr_index(kbuf);
206 size = kbuffer_event_size(kbuf);
211 kbuffer_free(kbuf);