Lines Matching refs:marker
156 struct fd_ringmarker *marker = NULL; in fd_ringmarker_new() local
158 marker = calloc(1, sizeof(*marker)); in fd_ringmarker_new()
159 if (!marker) { in fd_ringmarker_new()
164 marker->ring = ring; in fd_ringmarker_new()
166 marker->cur = marker->ring->cur; in fd_ringmarker_new()
168 return marker; in fd_ringmarker_new()
171 void fd_ringmarker_del(struct fd_ringmarker *marker) in fd_ringmarker_del() argument
173 free(marker); in fd_ringmarker_del()
176 void fd_ringmarker_mark(struct fd_ringmarker *marker) in fd_ringmarker_mark() argument
178 marker->cur = marker->ring->cur; in fd_ringmarker_mark()
187 int fd_ringmarker_flush(struct fd_ringmarker *marker) in fd_ringmarker_flush() argument
189 struct fd_ringbuffer *ring = marker->ring; in fd_ringmarker_flush()
190 return ring->funcs->flush(ring, marker->cur, -1, NULL); in fd_ringmarker_flush()