Messages in this thread |  | | Date | Sun, 11 Feb 2018 15:50:47 -0800 | From | Stephen Hemminger <> | Subject | Re: [PATCH char-misc 1/1] Drivers: hv: vmbus: Fix ring buffer signaling |
| |
On Sat, 10 Feb 2018 20:48:49 +0000 Michael Kelley <mhkelley@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?
|  |