Re: [RFC PATCH 04/10] pipe: Use head and tail pointers for the ring, not cursor and length [ver #2]

From
David Howells <dhowells@redhat.com>
Date
2019-10-31 15:11:45
Also in
keyrings, linux-api, linux-block, linux-fsdevel, linux-usb, lkml
Reply to
Rasmus Villemoes, 2019-10-30
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
Thread (52 messages) 52 messages, 11 authors, last reply 2019-12-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help