ringbuf_process_ring
err = ringbuf_process_ring(ring, n);
err = ringbuf_process_ring(ring, INT_MAX);
res = ringbuf_process_ring(r, n);