aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fuse.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index abde9949e2c0..5650cf033e73 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -163,6 +163,13 @@ struct fuse_file_lock {
163 163
164#define FUSE_IOCTL_MAX_IOV 256 164#define FUSE_IOCTL_MAX_IOV 256
165 165
166/**
167 * Poll flags
168 *
169 * FUSE_POLL_SCHEDULE_NOTIFY: request poll notify
170 */
171#define FUSE_POLL_SCHEDULE_NOTIFY (1 << 0)
172
166enum fuse_opcode { 173enum fuse_opcode {
167 FUSE_LOOKUP = 1, 174 FUSE_LOOKUP = 1,
168 FUSE_FORGET = 2, /* no reply */ 175 FUSE_FORGET = 2, /* no reply */
@@ -201,9 +208,11 @@ enum fuse_opcode {
201 FUSE_BMAP = 37, 208 FUSE_BMAP = 37,
202 FUSE_DESTROY = 38, 209 FUSE_DESTROY = 38,
203 FUSE_IOCTL = 39, 210 FUSE_IOCTL = 39,
211 FUSE_POLL = 40,
204}; 212};
205 213
206enum fuse_notify_code { 214enum fuse_notify_code {
215 FUSE_NOTIFY_POLL = 1,
207 FUSE_NOTIFY_CODE_MAX, 216 FUSE_NOTIFY_CODE_MAX,
208}; 217};
209 218
@@ -421,6 +430,22 @@ struct fuse_ioctl_out {
421 __u32 out_iovs; 430 __u32 out_iovs;
422}; 431};
423 432
433struct fuse_poll_in {
434 __u64 fh;
435 __u64 kh;
436 __u32 flags;
437 __u32 padding;
438};
439
440struct fuse_poll_out {
441 __u32 revents;
442 __u32 padding;
443};
444
445struct fuse_notify_poll_wakeup_out {
446 __u64 kh;
447};
448
424struct fuse_in_header { 449struct fuse_in_header {
425 __u32 len; 450 __u32 len;
426 __u32 opcode; 451 __u32 opcode;