aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-11-26 06:03:55 -0500
committerMiklos Szeredi <miklos@szeredi.hu>2008-11-26 06:03:55 -0500
commit8599396b5062bf6bd2a0b433503849e2322df1c2 (patch)
tree8ce5f253eaf5fe28324c497db780d824ea60bb5c /include/linux
parentacf99433d98c2570a619d8fb8b51abce4e532059 (diff)
fuse: implement unsolicited notification
Clients always used to write only in response to read requests. To implement poll efficiently, clients should be able to issue unsolicited notifications. This patch implements basic notification support. Zero fuse_out_header.unique is now accepted and considered unsolicited notification and the error field contains notification code. This patch doesn't implement any actual notification. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fuse.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index 608e300ae883..abde9949e2c0 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -203,6 +203,10 @@ enum fuse_opcode {
203 FUSE_IOCTL = 39, 203 FUSE_IOCTL = 39,
204}; 204};
205 205
206enum fuse_notify_code {
207 FUSE_NOTIFY_CODE_MAX,
208};
209
206/* The read buffer is required to be at least 8k, but may be much larger */ 210/* The read buffer is required to be at least 8k, but may be much larger */
207#define FUSE_MIN_READ_BUFFER 8192 211#define FUSE_MIN_READ_BUFFER 8192
208 212