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
12 #define FUSE_USE_VERSION 31
13 #include "fuse_lowlevel.h"
19 struct fuse_session
*se
;
26 unsigned int ioctl_64bit
:1;
32 fuse_interrupt_func_t func
;
36 struct fuse_req
*next
;
37 struct fuse_req
*prev
;
40 struct fuse_notify_req
{
42 void (*reply
)(struct fuse_notify_req
*, fuse_req_t
, fuse_ino_t
,
43 const void *, const struct fuse_buf
*);
44 struct fuse_notify_req
*next
;
45 struct fuse_notify_req
*prev
;
54 struct fuse_lowlevel_ops op
;
56 struct cuse_data
*cuse_data
;
59 struct fuse_conn_info conn
;
61 struct fuse_req interrupts
;
63 pthread_rwlock_t init_rwlock
;
65 int broken_splice_nonblock
;
67 struct fuse_notify_req notify_list
;
73 struct fv_VuDev
*virtio_dev
;
81 struct fv_QueueInfo
*qi
;
84 int fuse_send_reply_iov_nofree(fuse_req_t req
, int error
, struct iovec
*iov
,
86 void fuse_free_req(fuse_req_t req
);
88 void fuse_session_process_buf_int(struct fuse_session
*se
,
89 struct fuse_bufvec
*bufv
,
90 struct fuse_chan
*ch
);
93 #define FUSE_MAX_MAX_PAGES 256
94 #define FUSE_DEFAULT_MAX_PAGES_PER_REQ 32
96 /* room needed in buffer to accommodate header */
97 #define FUSE_BUFFER_HEADER_SIZE 0x1000