Lines Matching refs:marker
111 struct fd_ringmarker *marker = NULL; in fd_ringmarker_new() local
113 marker = calloc(1, sizeof(*marker)); in fd_ringmarker_new()
114 if (!marker) { in fd_ringmarker_new()
119 marker->ring = ring; in fd_ringmarker_new()
121 fd_ringmarker_mark(marker); in fd_ringmarker_new()
123 return marker; in fd_ringmarker_new()
126 void fd_ringmarker_del(struct fd_ringmarker *marker) in fd_ringmarker_del() argument
128 free(marker); in fd_ringmarker_del()
131 void fd_ringmarker_mark(struct fd_ringmarker *marker) in fd_ringmarker_mark() argument
133 marker->cur = marker->ring->cur; in fd_ringmarker_mark()
142 int fd_ringmarker_flush(struct fd_ringmarker *marker) in fd_ringmarker_flush() argument
144 struct fd_ringbuffer *ring = marker->ring; in fd_ringmarker_flush()
145 return ring->funcs->flush(ring, marker->cur); in fd_ringmarker_flush()