aboutsummaryrefslogtreecommitdiffstats
path: root/example/fioc.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2009-06-18 11:11:54 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2009-06-18 11:11:54 +0000
commitae9bfde712697205ac8809edc431cb7c0bdd484f (patch)
tree6f05932e39f7b1bfb44452bb09aecaa2826e4f0b /example/fioc.h
parentbc53eddb2f76be3e134aa5ed1814254aa289f898 (diff)
downloadlibfuse-ae9bfde712697205ac8809edc431cb7c0bdd484f.tar.gz
CUSE patches from Tejun Heo
Diffstat (limited to 'example/fioc.h')
-rw-r--r--example/fioc.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/example/fioc.h b/example/fioc.h
index c1d9cdf..ec1a39d 100644
--- a/example/fioc.h
+++ b/example/fioc.h
@@ -12,6 +12,21 @@
#include <sys/ioctl.h>
enum {
- FIOC_GET_SIZE = _IOR('E', 0, size_t),
- FIOC_SET_SIZE = _IOW('E', 1, size_t),
+ FIOC_GET_SIZE = _IOR('E', 0, size_t),
+ FIOC_SET_SIZE = _IOW('E', 1, size_t),
+
+ /*
+ * The following two ioctls don't follow usual encoding rules
+ * and transfer variable amount of data.
+ */
+ FIOC_READ = _IO('E', 2),
+ FIOC_WRITE = _IO('E', 3),
+};
+
+struct fioc_rw_arg {
+ off_t offset;
+ void *buf;
+ size_t size;
+ size_t prev_size; /* out param for previous total size */
+ size_t new_size; /* out param for new total size */
};