Lines Matching refs:kbuf
72 struct kbuffer *kbuf;
115 kbuf = kbuffer_alloc(KBUFFER_ENDIAN_SAME_AS_HOST,
117 if (!kbuf) {
121 ret = kbuffer_load_subbuffer(kbuf, buf);
127 if (kbuffer_subbuffer_size(kbuf) > st.st_size) {
129 kbuffer_subbuffer_size(kbuf), st.st_size);
133 ret = kbuffer_missed_events(kbuf);
141 event = kbuffer_read_event(kbuf, &ts);
143 record_size = kbuffer_curr_size(kbuf);
144 offset = kbuffer_curr_offset(kbuf);
145 index = kbuffer_curr_index(kbuf);
146 size = kbuffer_event_size(kbuf);
152 event = kbuffer_next_event(kbuf, NULL);
160 event = kbuffer_read_at_offset(kbuf, save_offset, &ts);
165 record_size = kbuffer_curr_size(kbuf);
166 offset = kbuffer_curr_offset(kbuf);
167 index = kbuffer_curr_index(kbuf);
168 size = kbuffer_event_size(kbuf);
173 kbuffer_free(kbuf);