lkml.org 
[lkml]   [2018]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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?

\
 
 \ /
  Last update: 2018-02-12 00:51    [W:0.032 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site