int ring_buf_get_yield(struct ring_buf *buf, void *data, ring_buf_size_t size, int yield(void *data, int index, void *extra), void *extra)
Copies buffer space and yields it to a callback function.
int ring_buf_get_claim_yield(struct ring_buf *buf, ring_buf_size_t size, int yield(void *space, int index, void *extra), void *extra)
Claims ring buffer space and yields it to a callback function.