aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2010-11-08 17:11:46 +0100
committerMiklos Szeredi <mszeredi@suse.cz>2010-11-08 17:11:46 +0100
commit4e0aea6a96146115e2fb3b8c4a4c75325ad894d7 (patch)
treeddccccd975def8b0881dbd4b219a931a03ffd227 /include/fuse_common.h
parent7d878eb13a9b1e0e1a428c1ead2733b8453a3bb7 (diff)
downloadlibfuse-4e0aea6a96146115e2fb3b8c4a4c75325ad894d7.tar.gz
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.
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 7c651ff..625a536 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -101,6 +101,7 @@ struct fuse_file_info {
#define FUSE_CAP_DONT_MASK (1 << 6)
#define FUSE_CAP_SPLICE_WRITE (1 << 7)
#define FUSE_CAP_SPLICE_MOVE (1 << 8)
+#define FUSE_CAP_SPLICE_READ (1 << 9)
/**
* Ioctl flags