lkml.org 
[lkml]   [2019]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 04/10] pipe: Use head and tail pointers for the ring, not cursor and length [ver #2]
Date
How about:

* We use head and tail indices that aren't masked off, except at the
* point of dereference, but rather they're allowed to wrap naturally.
* This means there isn't a dead spot in the buffer, provided the ring
* size is a power of two and <= 2^31.

David

\
 
 \ /
  Last update: 2019-10-31 16:12    [W:0.150 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site