On Sat, 10 Feb 2018 20:48:49 +0000
Michael Kelley <mhkel...@outlook.com> wrote:

> +     u32 delta = rbi->ring_buffer->read_index < rbi->priv_read_index ?
> +                     (rbi->priv_read_index - rbi->ring_buffer->read_index) :
> +                     (rbi->ring_datasize - rbi->ring_buffer->read_index +
> +                     rbi->priv_read_index);
>  

Would it would make sense for this to be a wrapper function like other ring 
operations?

Reply via email to