libfuse: support zero copy writes in lowlevel interface
commit4e0aea6a96146115e2fb3b8c4a4c75325ad894d7
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 8 Nov 2010 16:11:46 +0000 (8 17:11 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 8 Nov 2010 16:11:46 +0000 (8 17:11 +0100)
treeddccccd975def8b0881dbd4b219a931a03ffd227
parent7d878eb13a9b1e0e1a428c1ead2733b8453a3bb7
libfuse: support zero copy writes in lowlevel interface

Add new ->write_buf() method to low level interface.  This
allows passig a generic buffer, either containing a memory buffer
or a file descriptor.  This allows implementing zero copy writes.

Add fuse_session_receive_buf() and fuse_session_process_buf()
which may be used in event loop implementations to replace
fuse_chan_recv() and fuse_session_process() respectively.
ChangeLog
include/fuse_common.h
include/fuse_lowlevel.h
lib/fuse_i.h
lib/fuse_loop.c
lib/fuse_loop_mt.c
lib/fuse_lowlevel.c
lib/fuse_session.c
lib/fuse_versionscript