libfuse: refcount fuse_chan objects
[fuse.git] / example / fioc.h
blob42799aa5d06bea65c5f4f4d73af0f9a7946bc248
1 /*
2 FUSE-ioctl: ioctl support for FUSE
3 Copyright (C) 2008 SUSE Linux Products GmbH
4 Copyright (C) 2008 Tejun Heo <teheo@suse.de>
6 This program can be distributed under the terms of the GNU GPL.
7 See the file COPYING.
8 */
10 /** @file
11 * @tableofcontents
13 * fioc.h - FUSE-ioctl: ioctl support for FUSE
15 * \include fioc.h
19 #include <sys/types.h>
20 #include <sys/uio.h>
21 #include <sys/ioctl.h>
23 enum {
24 FIOC_GET_SIZE = _IOR('E', 0, size_t),
25 FIOC_SET_SIZE = _IOW('E', 1, size_t),
28 * The following two ioctls don't follow usual encoding rules
29 * and transfer variable amount of data.
31 FIOC_READ = _IO('E', 2),
32 FIOC_WRITE = _IO('E', 3),
35 struct fioc_rw_arg {
36 off_t offset;
37 void *buf;
38 size_t size;
39 size_t prev_size; /* out param for previous total size */
40 size_t new_size; /* out param for new total size */