libfuse
fuse_lowlevel.h
Go to the documentation of this file.
1 /*
2  FUSE: Filesystem in Userspace
3  Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
4 
5  This program can be distributed under the terms of the GNU LGPLv2.
6  See the file COPYING.LIB.
7 */
8 
9 #ifndef FUSE_LOWLEVEL_H_
10 #define FUSE_LOWLEVEL_H_
11 
21 #ifndef FUSE_USE_VERSION
22 #error FUSE_USE_VERSION not defined
23 #endif
24 
25 #include "fuse_common.h"
26 
27 #include <utime.h>
28 #include <fcntl.h>
29 #include <sys/types.h>
30 #include <sys/stat.h>
31 #include <sys/statvfs.h>
32 #include <sys/uio.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /* ----------------------------------------------------------- *
39  * Miscellaneous definitions *
40  * ----------------------------------------------------------- */
41 
43 #define FUSE_ROOT_ID 1
44 
46 typedef uint64_t fuse_ino_t;
47 
49 typedef struct fuse_req *fuse_req_t;
50 
56 struct fuse_session;
57 
68 
79  uint64_t generation;
80 
88  struct stat attr;
89 
94  double attr_timeout;
95 
101 };
102 
111 struct fuse_ctx {
113  uid_t uid;
114 
116  gid_t gid;
117 
119  pid_t pid;
120 
122  mode_t umask;
123 };
124 
125 struct fuse_forget_data {
126  fuse_ino_t ino;
127  uint64_t nlookup;
128 };
129 
130 struct fuse_custom_io {
131  ssize_t (*writev)(int fd, struct iovec *iov, int count, void *userdata);
132  ssize_t (*read)(int fd, void *buf, size_t buf_len, void *userdata);
133  ssize_t (*splice_receive)(int fdin, __off64_t *offin, int fdout,
134  __off64_t *offout, size_t len,
135  unsigned int flags, void *userdata);
136  ssize_t (*splice_send)(int fdin, __off64_t *offin, int fdout,
137  __off64_t *offout, size_t len,
138  unsigned int flags, void *userdata);
139 };
140 
147  FUSE_LL_EXPIRE_ONLY = (1 << 0),
148 };
149 
150 /* 'to_set' flags in setattr */
151 #define FUSE_SET_ATTR_MODE (1 << 0)
152 #define FUSE_SET_ATTR_UID (1 << 1)
153 #define FUSE_SET_ATTR_GID (1 << 2)
154 #define FUSE_SET_ATTR_SIZE (1 << 3)
155 #define FUSE_SET_ATTR_ATIME (1 << 4)
156 #define FUSE_SET_ATTR_MTIME (1 << 5)
157 #define FUSE_SET_ATTR_ATIME_NOW (1 << 7)
158 #define FUSE_SET_ATTR_MTIME_NOW (1 << 8)
159 #define FUSE_SET_ATTR_CTIME (1 << 10)
160 
161 /* ----------------------------------------------------------- *
162  * Request methods and replies *
163  * ----------------------------------------------------------- */
164 
209  void (*init) (void *userdata, struct fuse_conn_info *conn);
210 
222  void (*destroy) (void *userdata);
223 
235  void (*lookup) (fuse_req_t req, fuse_ino_t parent, const char *name);
236 
273  void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);
274 
294  void (*getattr) (fuse_req_t req, fuse_ino_t ino,
295  struct fuse_file_info *fi);
296 
325  void (*setattr) (fuse_req_t req, fuse_ino_t ino, struct stat *attr,
326  int to_set, struct fuse_file_info *fi);
327 
338  void (*readlink) (fuse_req_t req, fuse_ino_t ino);
339 
356  void (*mknod) (fuse_req_t req, fuse_ino_t parent, const char *name,
357  mode_t mode, dev_t rdev);
358 
371  void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
372  mode_t mode);
373 
389  void (*unlink) (fuse_req_t req, fuse_ino_t parent, const char *name);
390 
406  void (*rmdir) (fuse_req_t req, fuse_ino_t parent, const char *name);
407 
420  void (*symlink) (fuse_req_t req, const char *link, fuse_ino_t parent,
421  const char *name);
422 
452  void (*rename) (fuse_req_t req, fuse_ino_t parent, const char *name,
453  fuse_ino_t newparent, const char *newname,
454  unsigned int flags);
455 
468  void (*link) (fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent,
469  const char *newname);
470 
527  void (*open) (fuse_req_t req, fuse_ino_t ino,
528  struct fuse_file_info *fi);
529 
555  void (*read) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
556  struct fuse_file_info *fi);
557 
584  void (*write) (fuse_req_t req, fuse_ino_t ino, const char *buf,
585  size_t size, off_t off, struct fuse_file_info *fi);
586 
625  void (*flush) (fuse_req_t req, fuse_ino_t ino,
626  struct fuse_file_info *fi);
627 
653  void (*release) (fuse_req_t req, fuse_ino_t ino,
654  struct fuse_file_info *fi);
655 
675  void (*fsync) (fuse_req_t req, fuse_ino_t ino, int datasync,
676  struct fuse_file_info *fi);
677 
700  void (*opendir) (fuse_req_t req, fuse_ino_t ino,
701  struct fuse_file_info *fi);
702 
746  void (*readdir) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
747  struct fuse_file_info *fi);
748 
765  void (*releasedir) (fuse_req_t req, fuse_ino_t ino,
766  struct fuse_file_info *fi);
767 
790  void (*fsyncdir) (fuse_req_t req, fuse_ino_t ino, int datasync,
791  struct fuse_file_info *fi);
792 
803  void (*statfs) (fuse_req_t req, fuse_ino_t ino);
804 
816  void (*setxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
817  const char *value, size_t size, int flags);
818 
847  void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
848  size_t size);
849 
878  void (*listxattr) (fuse_req_t req, fuse_ino_t ino, size_t size);
879 
895  void (*removexattr) (fuse_req_t req, fuse_ino_t ino, const char *name);
896 
917  void (*access) (fuse_req_t req, fuse_ino_t ino, int mask);
918 
946  void (*create) (fuse_req_t req, fuse_ino_t parent, const char *name,
947  mode_t mode, struct fuse_file_info *fi);
948 
961  void (*getlk) (fuse_req_t req, fuse_ino_t ino,
962  struct fuse_file_info *fi, struct flock *lock);
963 
986  void (*setlk) (fuse_req_t req, fuse_ino_t ino,
987  struct fuse_file_info *fi,
988  struct flock *lock, int sleep);
989 
1010  void (*bmap) (fuse_req_t req, fuse_ino_t ino, size_t blocksize,
1011  uint64_t idx);
1012 
1013 #if FUSE_USE_VERSION < 35
1014  void (*ioctl) (fuse_req_t req, fuse_ino_t ino, int cmd,
1015  void *arg, struct fuse_file_info *fi, unsigned flags,
1016  const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1017 #else
1046  void (*ioctl) (fuse_req_t req, fuse_ino_t ino, unsigned int cmd,
1047  void *arg, struct fuse_file_info *fi, unsigned flags,
1048  const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1049 #endif
1050 
1080  void (*poll) (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi,
1081  struct fuse_pollhandle *ph);
1082 
1110  void (*write_buf) (fuse_req_t req, fuse_ino_t ino,
1111  struct fuse_bufvec *bufv, off_t off,
1112  struct fuse_file_info *fi);
1113 
1126  void (*retrieve_reply) (fuse_req_t req, void *cookie, fuse_ino_t ino,
1127  off_t offset, struct fuse_bufvec *bufv);
1128 
1140  void (*forget_multi) (fuse_req_t req, size_t count,
1141  struct fuse_forget_data *forgets);
1142 
1158  void (*flock) (fuse_req_t req, fuse_ino_t ino,
1159  struct fuse_file_info *fi, int op);
1160 
1181  void (*fallocate) (fuse_req_t req, fuse_ino_t ino, int mode,
1182  off_t offset, off_t length, struct fuse_file_info *fi);
1183 
1209  void (*readdirplus) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
1210  struct fuse_file_info *fi);
1211 
1242  void (*copy_file_range) (fuse_req_t req, fuse_ino_t ino_in,
1243  off_t off_in, struct fuse_file_info *fi_in,
1244  fuse_ino_t ino_out, off_t off_out,
1245  struct fuse_file_info *fi_out, size_t len,
1246  int flags);
1247 
1266  void (*lseek) (fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
1267  struct fuse_file_info *fi);
1268 };
1269 
1291 int fuse_reply_err(fuse_req_t req, int err);
1292 
1303 void fuse_reply_none(fuse_req_t req);
1304 
1318 int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e);
1319 
1337 int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e,
1338  const struct fuse_file_info *fi);
1339 
1351 int fuse_reply_attr(fuse_req_t req, const struct stat *attr,
1352  double attr_timeout);
1353 
1364 int fuse_reply_readlink(fuse_req_t req, const char *link);
1365 
1379 int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi);
1380 
1391 int fuse_reply_write(fuse_req_t req, size_t count);
1392 
1404 int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size);
1405 
1449 int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv,
1450  enum fuse_buf_copy_flags flags);
1451 
1463 int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count);
1464 
1475 int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf);
1476 
1487 int fuse_reply_xattr(fuse_req_t req, size_t count);
1488 
1499 int fuse_reply_lock(fuse_req_t req, const struct flock *lock);
1500 
1511 int fuse_reply_bmap(fuse_req_t req, uint64_t idx);
1512 
1513 /* ----------------------------------------------------------- *
1514  * Filling a buffer in readdir *
1515  * ----------------------------------------------------------- */
1516 
1544 size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize,
1545  const char *name, const struct stat *stbuf,
1546  off_t off);
1547 
1561 size_t fuse_add_direntry_plus(fuse_req_t req, char *buf, size_t bufsize,
1562  const char *name,
1563  const struct fuse_entry_param *e, off_t off);
1564 
1581  const struct iovec *in_iov, size_t in_count,
1582  const struct iovec *out_iov, size_t out_count);
1583 
1595 int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size);
1596 
1608 int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov,
1609  int count);
1610 
1617 int fuse_reply_poll(fuse_req_t req, unsigned revents);
1618 
1629 int fuse_reply_lseek(fuse_req_t req, off_t off);
1630 
1631 /* ----------------------------------------------------------- *
1632  * Notification *
1633  * ----------------------------------------------------------- */
1634 
1642 int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph);
1643 
1667 int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino,
1668  off_t off, off_t len);
1669 
1695 int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent,
1696  const char *name, size_t namelen);
1697 
1725 int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent,
1726  const char *name, size_t namelen,
1727  enum fuse_expire_flags flags);
1728 
1757 int fuse_lowlevel_notify_delete(struct fuse_session *se,
1758  fuse_ino_t parent, fuse_ino_t child,
1759  const char *name, size_t namelen);
1760 
1786 int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino,
1787  off_t offset, struct fuse_bufvec *bufv,
1788  enum fuse_buf_copy_flags flags);
1818 int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino,
1819  size_t size, off_t offset, void *cookie);
1820 
1821 
1822 /* ----------------------------------------------------------- *
1823  * Utility functions *
1824  * ----------------------------------------------------------- */
1825 
1832 void *fuse_req_userdata(fuse_req_t req);
1833 
1843 const struct fuse_ctx *fuse_req_ctx(fuse_req_t req);
1844 
1864 int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[]);
1865 
1872 typedef void (*fuse_interrupt_func_t)(fuse_req_t req, void *data);
1873 
1886  void *data);
1887 
1895 
1896 
1897 /* ----------------------------------------------------------- *
1898  * Inquiry functions *
1899  * ----------------------------------------------------------- */
1900 
1904 void fuse_lowlevel_version(void);
1905 
1911 void fuse_lowlevel_help(void);
1912 
1916 void fuse_cmdline_help(void);
1917 
1918 /* ----------------------------------------------------------- *
1919  * Filesystem setup & teardown *
1920  * ----------------------------------------------------------- */
1921 
1928  int singlethread;
1929  int foreground;
1930  int debug;
1931  int nodefault_subtype;
1932  char *mountpoint;
1933  int show_version;
1934  int show_help;
1935  int clone_fd;
1936  unsigned int max_idle_threads; /* discouraged, due to thread
1937  * destruct overhead */
1938 
1939  /* Added in libfuse-3.12 */
1940  unsigned int max_threads;
1941 };
1942 
1961 #if (defined(HAVE_LIBC_VERSIONED_SYMBOLS))
1962 int fuse_parse_cmdline(struct fuse_args *args,
1963  struct fuse_cmdline_opts *opts);
1964 #else
1965 #if FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
1966 int fuse_parse_cmdline_30(struct fuse_args *args,
1967  struct fuse_cmdline_opts *opts);
1968 #define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_30(args, opts)
1969 #else
1970 int fuse_parse_cmdline_312(struct fuse_args *args,
1971  struct fuse_cmdline_opts *opts);
1972 #define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_312(args, opts)
1973 #endif
1974 #endif
1975 
2004 struct fuse_session *fuse_session_new(struct fuse_args *args,
2005  const struct fuse_lowlevel_ops *op,
2006  size_t op_size, void *userdata);
2007 
2035 int fuse_session_custom_io(struct fuse_session *se,
2036  const struct fuse_custom_io *io, int fd);
2037 
2046 int fuse_session_mount(struct fuse_session *se, const char *mountpoint);
2047 
2070 int fuse_session_loop(struct fuse_session *se);
2071 
2072 #if FUSE_USE_VERSION < 32
2073  int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd);
2074  #define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd)
2075 #elif FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
2076  int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config);
2077  #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_32(se, config)
2078 #else
2079  #if (defined(HAVE_LIBC_VERSIONED_SYMBOLS))
2091  int fuse_session_loop_mt(struct fuse_session *se, struct fuse_loop_config *config);
2092  #else
2093  int fuse_session_loop_mt_312(struct fuse_session *se, struct fuse_loop_config *config);
2094  #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_312(se, config)
2095  #endif
2096 #endif
2097 
2107 void fuse_session_exit(struct fuse_session *se);
2108 
2114 void fuse_session_reset(struct fuse_session *se);
2115 
2122 int fuse_session_exited(struct fuse_session *se);
2123 
2148 void fuse_session_unmount(struct fuse_session *se);
2149 
2155 void fuse_session_destroy(struct fuse_session *se);
2156 
2157 /* ----------------------------------------------------------- *
2158  * Custom event loop support *
2159  * ----------------------------------------------------------- */
2160 
2175 int fuse_session_fd(struct fuse_session *se);
2176 
2185 void fuse_session_process_buf(struct fuse_session *se,
2186  const struct fuse_buf *buf);
2187 
2199 int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf);
2200 
2201 #ifdef __cplusplus
2202 }
2203 #endif
2204 
2205 #endif /* FUSE_LOWLEVEL_H_ */
fuse_buf_copy_flags
Definition: fuse_common.h:687
void fuse_session_destroy(struct fuse_session *se)
fuse_expire_flags
int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv, enum fuse_buf_copy_flags flags)
int fuse_reply_lock(fuse_req_t req, const struct flock *lock)
int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi)
void fuse_session_exit(struct fuse_session *se)
void(* fuse_interrupt_func_t)(fuse_req_t req, void *data)
int fuse_reply_poll(fuse_req_t req, unsigned revents)
int fuse_reply_err(fuse_req_t req, int err)
int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size)
struct fuse_req * fuse_req_t
Definition: fuse_lowlevel.h:49
size_t fuse_add_direntry_plus(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct fuse_entry_param *e, off_t off)
int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov, int count)
int fuse_lowlevel_notify_delete(struct fuse_session *se, fuse_ino_t parent, fuse_ino_t child, const char *name, size_t namelen)
void fuse_session_process_buf(struct fuse_session *se, const struct fuse_buf *buf)
int fuse_session_exited(struct fuse_session *se)
int fuse_session_fd(struct fuse_session *se)
int fuse_req_interrupted(fuse_req_t req)
int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino, size_t size, off_t offset, void *cookie)
int fuse_reply_readlink(fuse_req_t req, const char *link)
int fuse_session_loop(struct fuse_session *se)
Definition: fuse_loop.c:19
int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count)
int fuse_reply_bmap(fuse_req_t req, uint64_t idx)
int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e)
void fuse_session_unmount(struct fuse_session *se)
void fuse_cmdline_help(void)
Definition: helper.c:130
void fuse_reply_none(fuse_req_t req)
int fuse_reply_ioctl_retry(fuse_req_t req, const struct iovec *in_iov, size_t in_count, const struct iovec *out_iov, size_t out_count)
void fuse_lowlevel_help(void)
int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino, off_t off, off_t len)
struct fuse_session * fuse_session_new(struct fuse_args *args, const struct fuse_lowlevel_ops *op, size_t op_size, void *userdata)
int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)
int fuse_reply_write(fuse_req_t req, size_t count)
int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf)
int fuse_session_mount(struct fuse_session *se, const char *mountpoint)
int fuse_parse_cmdline_30(struct fuse_args *args, struct fuse_cmdline_opts *opts)
Definition: helper.c:237
void * fuse_req_userdata(fuse_req_t req)
int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen, enum fuse_expire_flags flags)
int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph)
int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen)
void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func, void *data)
void fuse_session_reset(struct fuse_session *se)
int fuse_session_custom_io(struct fuse_session *se, const struct fuse_custom_io *io, int fd)
int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e, const struct fuse_file_info *fi)
int fuse_reply_lseek(fuse_req_t req, off_t off)
void fuse_lowlevel_version(void)
uint64_t fuse_ino_t
Definition: fuse_lowlevel.h:46
size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off)
const struct fuse_ctx * fuse_req_ctx(fuse_req_t req)
int fuse_reply_attr(fuse_req_t req, const struct stat *attr, double attr_timeout)
int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size)
int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino, off_t offset, struct fuse_bufvec *bufv, enum fuse_buf_copy_flags flags)
int fuse_reply_xattr(fuse_req_t req, size_t count)
size_t off
Definition: fuse_common.h:787
size_t count
Definition: fuse_common.h:777
mode_t umask
Definition: fuse_lowlevel.h:59
double entry_timeout
fuse_ino_t ino
Definition: fuse_lowlevel.h:67
uint64_t generation
Definition: fuse_lowlevel.h:79
double attr_timeout
Definition: fuse_lowlevel.h:94
struct stat attr
Definition: fuse_lowlevel.h:88
void(* fsync)(fuse_req_t req, fuse_ino_t ino, int datasync, struct fuse_file_info *fi)
void(* bmap)(fuse_req_t req, fuse_ino_t ino, size_t blocksize, uint64_t idx)
void(* unlink)(fuse_req_t req, fuse_ino_t parent, const char *name)
void(* getxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, size_t size)
void(* rename)(fuse_req_t req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname, unsigned int flags)
void(* releasedir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* setxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, const char *value, size_t size, int flags)
void(* write_buf)(fuse_req_t req, fuse_ino_t ino, struct fuse_bufvec *bufv, off_t off, struct fuse_file_info *fi)
void(* symlink)(fuse_req_t req, const char *link, fuse_ino_t parent, const char *name)
void(* statfs)(fuse_req_t req, fuse_ino_t ino)
void(* release)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* readdir)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
void(* fallocate)(fuse_req_t req, fuse_ino_t ino, int mode, off_t offset, off_t length, struct fuse_file_info *fi)
void(* create)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, struct fuse_file_info *fi)
void(* link)(fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent, const char *newname)
void(* write)(fuse_req_t req, fuse_ino_t ino, const char *buf, size_t size, off_t off, struct fuse_file_info *fi)
void(* lookup)(fuse_req_t req, fuse_ino_t parent, const char *name)
void(* readdirplus)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
void(* flock)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, int op)
void(* getattr)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* copy_file_range)(fuse_req_t req, fuse_ino_t ino_in, off_t off_in, struct fuse_file_info *fi_in, fuse_ino_t ino_out, off_t off_out, struct fuse_file_info *fi_out, size_t len, int flags)
void(* setattr)(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, struct fuse_file_info *fi)
void(* open)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* removexattr)(fuse_req_t req, fuse_ino_t ino, const char *name)
void(* forget)(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup)
void(* poll)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct fuse_pollhandle *ph)
void(* ioctl)(fuse_req_t req, fuse_ino_t ino, unsigned int cmd, void *arg, struct fuse_file_info *fi, unsigned flags, const void *in_buf, size_t in_bufsz, size_t out_bufsz)
void(* rmdir)(fuse_req_t req, fuse_ino_t parent, const char *name)
void(* init)(void *userdata, struct fuse_conn_info *conn)
void(* setlk)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct flock *lock, int sleep)
void(* retrieve_reply)(fuse_req_t req, void *cookie, fuse_ino_t ino, off_t offset, struct fuse_bufvec *bufv)
void(* fsyncdir)(fuse_req_t req, fuse_ino_t ino, int datasync, struct fuse_file_info *fi)
void(* destroy)(void *userdata)
void(* mkdir)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode)
void(* access)(fuse_req_t req, fuse_ino_t ino, int mask)
void(* mknod)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, dev_t rdev)
void(* lseek)(fuse_req_t req, fuse_ino_t ino, off_t off, int whence, struct fuse_file_info *fi)
void(* getlk)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct flock *lock)
void(* readlink)(fuse_req_t req, fuse_ino_t ino)
void(* read)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
void(* flush)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* listxattr)(fuse_req_t req, fuse_ino_t ino, size_t size)
void(* opendir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* forget_multi)(fuse_req_t req, size_t count, struct fuse_forget_data *forgets)