diff options
Diffstat (limited to 'include/linux/fuse.h')
| -rw-r--r-- | include/linux/fuse.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h index 162e5defe683..d41ed593f79f 100644 --- a/include/linux/fuse.h +++ b/include/linux/fuse.h | |||
| @@ -121,6 +121,13 @@ struct fuse_file_lock { | |||
| 121 | #define FUSE_BIG_WRITES (1 << 5) | 121 | #define FUSE_BIG_WRITES (1 << 5) |
| 122 | 122 | ||
| 123 | /** | 123 | /** |
| 124 | * CUSE INIT request/reply flags | ||
| 125 | * | ||
| 126 | * CUSE_UNRESTRICTED_IOCTL: use unrestricted ioctl | ||
| 127 | */ | ||
| 128 | #define CUSE_UNRESTRICTED_IOCTL (1 << 0) | ||
| 129 | |||
| 130 | /** | ||
| 124 | * Release flags | 131 | * Release flags |
| 125 | */ | 132 | */ |
| 126 | #define FUSE_RELEASE_FLUSH (1 << 0) | 133 | #define FUSE_RELEASE_FLUSH (1 << 0) |
| @@ -210,6 +217,9 @@ enum fuse_opcode { | |||
| 210 | FUSE_DESTROY = 38, | 217 | FUSE_DESTROY = 38, |
| 211 | FUSE_IOCTL = 39, | 218 | FUSE_IOCTL = 39, |
| 212 | FUSE_POLL = 40, | 219 | FUSE_POLL = 40, |
| 220 | |||
| 221 | /* CUSE specific operations */ | ||
| 222 | CUSE_INIT = 4096, | ||
| 213 | }; | 223 | }; |
| 214 | 224 | ||
| 215 | enum fuse_notify_code { | 225 | enum fuse_notify_code { |
| @@ -401,6 +411,27 @@ struct fuse_init_out { | |||
| 401 | __u32 max_write; | 411 | __u32 max_write; |
| 402 | }; | 412 | }; |
| 403 | 413 | ||
| 414 | #define CUSE_INIT_INFO_MAX 4096 | ||
| 415 | |||
| 416 | struct cuse_init_in { | ||
| 417 | __u32 major; | ||
| 418 | __u32 minor; | ||
| 419 | __u32 unused; | ||
| 420 | __u32 flags; | ||
| 421 | }; | ||
| 422 | |||
| 423 | struct cuse_init_out { | ||
| 424 | __u32 major; | ||
| 425 | __u32 minor; | ||
| 426 | __u32 unused; | ||
| 427 | __u32 flags; | ||
| 428 | __u32 max_read; | ||
| 429 | __u32 max_write; | ||
| 430 | __u32 dev_major; /* chardev major */ | ||
| 431 | __u32 dev_minor; /* chardev minor */ | ||
| 432 | __u32 spare[10]; | ||
| 433 | }; | ||
| 434 | |||
| 404 | struct fuse_interrupt_in { | 435 | struct fuse_interrupt_in { |
| 405 | __u64 unique; | 436 | __u64 unique; |
| 406 | }; | 437 | }; |
