2 * FUSE: Filesystem in Userspace
3 * Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
5 * This program can be distributed under the terms of the GNU LGPLv2.
6 * See the file COPYING.LIB
10 #include "fuse_lowlevel.h"
13 struct fuse_session
*se
;
20 unsigned int ioctl_64bit
:1;
26 fuse_interrupt_func_t func
;
30 struct fuse_req
*next
;
31 struct fuse_req
*prev
;
34 struct fuse_notify_req
{
36 void (*reply
)(struct fuse_notify_req
*, fuse_req_t
, fuse_ino_t
,
37 const void *, const struct fuse_buf
*);
38 struct fuse_notify_req
*next
;
39 struct fuse_notify_req
*prev
;
48 struct fuse_lowlevel_ops op
;
50 struct cuse_data
*cuse_data
;
53 struct fuse_conn_info conn
;
55 struct fuse_req interrupts
;
58 int broken_splice_nonblock
;
60 struct fuse_notify_req notify_list
;
74 * Filesystem modules are registered with the FUSE_REGISTER_MODULE()
80 fuse_module_factory_t factory
;
81 struct fuse_module
*next
;
82 struct fusemod_so
*so
;
86 int fuse_send_reply_iov_nofree(fuse_req_t req
, int error
, struct iovec
*iov
,
88 void fuse_free_req(fuse_req_t req
);
90 void fuse_session_process_buf_int(struct fuse_session
*se
,
91 const struct fuse_buf
*buf
,
92 struct fuse_chan
*ch
);
95 #define FUSE_MAX_MAX_PAGES 256
96 #define FUSE_DEFAULT_MAX_PAGES_PER_REQ 32
98 /* room needed in buffer to accommodate header */
99 #define FUSE_BUFFER_HEADER_SIZE 0x1000