LWN.net Logo

Sharing buffers between devices

Sharing buffers between devices

Posted Aug 18, 2011 12:42 UTC (Thu) by justincormack (subscriber, #70439)
Parent article: Sharing buffers between devices

I thought we had agreed that the userspace representation of a kernel buffer was a pipe? As used in tee and splice etc. It would be nice to keep this consistent.


(Log in to post comments)

Sharing buffers between devices

Posted Aug 18, 2011 14:04 UTC (Thu) by cladisch (✭ supporter ✭, #50193) [Link]

Pipes represent byte streams. A plain memory block is better if you want to do random accesses, i.e., if it contains a ring buffer or packets that are reused.

Sharing buffers between devices

Posted Aug 18, 2011 14:11 UTC (Thu) by justincormack (subscriber, #70439) [Link]

No, pipes are supposed to be a general kernel memory (ring) buffer in effect now, which as it happens you can implement a Unix pipe on top of: https://lwn.net/Articles/119682/

Sharing buffers between devices

Posted Aug 18, 2011 19:24 UTC (Thu) by robclark (subscriber, #74945) [Link]

not pipe, but file descriptor

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds