libfuse: include/fuse_lowlevel.h Source File

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
35extern "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
56struct fuse_session;
57
59 struct fuse_entry_param {
67 fuse_ino_t ino;
68
79 uint64_t generation;
80
88 struct stat attr;
89
94 double attr_timeout;
95
100 double entry_timeout;
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
125struct fuse_forget_data {
126 fuse_ino_t ino;
127 uint64_t nlookup;
128};
129
130struct 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, off_t *offin, int fdout,
134 off_t *offout, size_t len,
135 unsigned int flags, void *userdata);
136 ssize_t (*splice_send)(int fdin, off_t *offin, int fdout,
137 off_t *offout, size_t len,
138 unsigned int flags, void *userdata);
139};
140
146 enum fuse_notify_entry_flags {
147 FUSE_LL_INVALIDATE = 0,
148 FUSE_LL_EXPIRE_ONLY = (1 << 0),
149};
150
151/* 'to_set' flags in setattr */
152#define FUSE_SET_ATTR_MODE (1 << 0)
153#define FUSE_SET_ATTR_UID (1 << 1)
154#define FUSE_SET_ATTR_GID (1 << 2)
155#define FUSE_SET_ATTR_SIZE (1 << 3)
156#define FUSE_SET_ATTR_ATIME (1 << 4)
157#define FUSE_SET_ATTR_MTIME (1 << 5)
158#define FUSE_SET_ATTR_ATIME_NOW (1 << 7)
159#define FUSE_SET_ATTR_MTIME_NOW (1 << 8)
160#define FUSE_SET_ATTR_FORCE (1 << 9)
161#define FUSE_SET_ATTR_CTIME (1 << 10)
162#define FUSE_SET_ATTR_KILL_SUID (1 << 11)
163#define FUSE_SET_ATTR_KILL_SGID (1 << 12)
164#define FUSE_SET_ATTR_FILE (1 << 13)
165#define FUSE_SET_ATTR_KILL_PRIV (1 << 14)
166#define FUSE_SET_ATTR_OPEN (1 << 15)
167#define FUSE_SET_ATTR_TIMES_SET (1 << 16)
168#define FUSE_SET_ATTR_TOUCH (1 << 17)
169
170/* ----------------------------------------------------------- *
171 * Request methods and replies *
172 * ----------------------------------------------------------- */
173
201 struct fuse_lowlevel_ops {
218 void (*init) (void *userdata, struct fuse_conn_info *conn);
219
231 void (*destroy) (void *userdata);
232
244 void (*lookup) (fuse_req_t req, fuse_ino_t parent, const char *name);
245
282 void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);
283
303 void (*getattr) (fuse_req_t req, fuse_ino_t ino,
304 struct fuse_file_info *fi);
305
340 void (*setattr) (fuse_req_t req, fuse_ino_t ino, struct stat *attr,
341 int to_set, struct fuse_file_info *fi);
342
353 void (*readlink) (fuse_req_t req, fuse_ino_t ino);
354
371 void (*mknod) (fuse_req_t req, fuse_ino_t parent, const char *name,
372 mode_t mode, dev_t rdev);
373
386 void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
387 mode_t mode);
388
404 void (*unlink) (fuse_req_t req, fuse_ino_t parent, const char *name);
405
421 void (*rmdir) (fuse_req_t req, fuse_ino_t parent, const char *name);
422
435 void (*symlink) (fuse_req_t req, const char *link, fuse_ino_t parent,
436 const char *name);
437
467 void (*rename) (fuse_req_t req, fuse_ino_t parent, const char *name,
468 fuse_ino_t newparent, const char *newname,
469 unsigned int flags);
470
483 void (*link) (fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent,
484 const char *newname);
485
542 void (*open) (fuse_req_t req, fuse_ino_t ino,
543 struct fuse_file_info *fi);
544
570 void (*read) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
571 struct fuse_file_info *fi);
572
599 void (*write) (fuse_req_t req, fuse_ino_t ino, const char *buf,
600 size_t size, off_t off, struct fuse_file_info *fi);
601
640 void (*flush) (fuse_req_t req, fuse_ino_t ino,
641 struct fuse_file_info *fi);
642
668 void (*release) (fuse_req_t req, fuse_ino_t ino,
669 struct fuse_file_info *fi);
670
690 void (*fsync) (fuse_req_t req, fuse_ino_t ino, int datasync,
691 struct fuse_file_info *fi);
692
715 void (*opendir) (fuse_req_t req, fuse_ino_t ino,
716 struct fuse_file_info *fi);
717
761 void (*readdir) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
762 struct fuse_file_info *fi);
763
780 void (*releasedir) (fuse_req_t req, fuse_ino_t ino,
781 struct fuse_file_info *fi);
782
805 void (*fsyncdir) (fuse_req_t req, fuse_ino_t ino, int datasync,
806 struct fuse_file_info *fi);
807
818 void (*statfs) (fuse_req_t req, fuse_ino_t ino);
819
831 void (*setxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
832 const char *value, size_t size, int flags);
833
862 void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
863 size_t size);
864
893 void (*listxattr) (fuse_req_t req, fuse_ino_t ino, size_t size);
894
910 void (*removexattr) (fuse_req_t req, fuse_ino_t ino, const char *name);
911
932 void (*access) (fuse_req_t req, fuse_ino_t ino, int mask);
933
961 void (*create) (fuse_req_t req, fuse_ino_t parent, const char *name,
962 mode_t mode, struct fuse_file_info *fi);
963
976 void (*getlk) (fuse_req_t req, fuse_ino_t ino,
977 struct fuse_file_info *fi, struct flock *lock);
978
1001 void (*setlk) (fuse_req_t req, fuse_ino_t ino,
1002 struct fuse_file_info *fi,
1003 struct flock *lock, int sleep);
1004
1025 void (*bmap) (fuse_req_t req, fuse_ino_t ino, size_t blocksize,
1026 uint64_t idx);
1027
1028#if FUSE_USE_VERSION < 35
1029 void (*ioctl) (fuse_req_t req, fuse_ino_t ino, int cmd,
1030 void *arg, struct fuse_file_info *fi, unsigned flags,
1031 const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1032#else
1061 void (*ioctl) (fuse_req_t req, fuse_ino_t ino, unsigned int cmd,
1062 void *arg, struct fuse_file_info *fi, unsigned flags,
1063 const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1064#endif
1065
1095 void (*poll) (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi,
1096 struct fuse_pollhandle *ph);
1097
1125 void (*write_buf) (fuse_req_t req, fuse_ino_t ino,
1126 struct fuse_bufvec *bufv, off_t off,
1127 struct fuse_file_info *fi);
1128
1141 void (*retrieve_reply) (fuse_req_t req, void *cookie, fuse_ino_t ino,
1142 off_t offset, struct fuse_bufvec *bufv);
1143
1155 void (*forget_multi) (fuse_req_t req, size_t count,
1156 struct fuse_forget_data *forgets);
1157
1173 void (*flock) (fuse_req_t req, fuse_ino_t ino,
1174 struct fuse_file_info *fi, int op);
1175
1196 void (*fallocate) (fuse_req_t req, fuse_ino_t ino, int mode,
1197 off_t offset, off_t length, struct fuse_file_info *fi);
1198
1224 void (*readdirplus) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
1225 struct fuse_file_info *fi);
1226
1257 void (*copy_file_range) (fuse_req_t req, fuse_ino_t ino_in,
1258 off_t off_in, struct fuse_file_info *fi_in,
1259 fuse_ino_t ino_out, off_t off_out,
1260 struct fuse_file_info *fi_out, size_t len,
1261 int flags);
1262
1281 void (*lseek) (fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
1282 struct fuse_file_info *fi);
1283};
1284
1306int fuse_reply_err(fuse_req_t req, int err);
1307
1318void fuse_reply_none(fuse_req_t req);
1319
1333int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e);
1334
1352int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e,
1353 const struct fuse_file_info *fi);
1354
1366int fuse_reply_attr(fuse_req_t req, const struct stat *attr,
1367 double attr_timeout);
1368
1379int fuse_reply_readlink(fuse_req_t req, const char *link);
1380
1394int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi);
1395
1406int fuse_reply_write(fuse_req_t req, size_t count);
1407
1419int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size);
1420
1464int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv,
1465 enum fuse_buf_copy_flags flags);
1466
1478int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count);
1479
1490int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf);
1491
1502int fuse_reply_xattr(fuse_req_t req, size_t count);
1503
1514int fuse_reply_lock(fuse_req_t req, const struct flock *lock);
1515
1526int fuse_reply_bmap(fuse_req_t req, uint64_t idx);
1527
1528/* ----------------------------------------------------------- *
1529 * Filling a buffer in readdir *
1530 * ----------------------------------------------------------- */
1531
1559size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize,
1560 const char *name, const struct stat *stbuf,
1561 off_t off);
1562
1576size_t fuse_add_direntry_plus(fuse_req_t req, char *buf, size_t bufsize,
1577 const char *name,
1578 const struct fuse_entry_param *e, off_t off);
1579
1595int fuse_reply_ioctl_retry(fuse_req_t req,
1596 const struct iovec *in_iov, size_t in_count,
1597 const struct iovec *out_iov, size_t out_count);
1598
1610int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size);
1611
1623int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov,
1624 int count);
1625
1632int fuse_reply_poll(fuse_req_t req, unsigned revents);
1633
1644int fuse_reply_lseek(fuse_req_t req, off_t off);
1645
1646/* ----------------------------------------------------------- *
1647 * Notification *
1648 * ----------------------------------------------------------- */
1649
1657int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph);
1658
1682int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino,
1683 off_t off, off_t len);
1684
1709int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent,
1710 const char *name, size_t namelen);
1711
1740int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent,
1741 const char *name, size_t namelen);
1742
1771int fuse_lowlevel_notify_delete(struct fuse_session *se,
1772 fuse_ino_t parent, fuse_ino_t child,
1773 const char *name, size_t namelen);
1774
1800int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino,
1801 off_t offset, struct fuse_bufvec *bufv,
1802 enum fuse_buf_copy_flags flags);
1832int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino,
1833 size_t size, off_t offset, void *cookie);
1834
1835
1836/* ----------------------------------------------------------- *
1837 * Utility functions *
1838 * ----------------------------------------------------------- */
1839
1846void *fuse_req_userdata(fuse_req_t req);
1847
1857const struct fuse_ctx *fuse_req_ctx(fuse_req_t req);
1858
1878int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[]);
1879
1886 typedef void (*fuse_interrupt_func_t)(fuse_req_t req, void *data);
1887
1899void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func,
1900 void *data);
1901
1908int fuse_req_interrupted(fuse_req_t req);
1909
1910
1911/* ----------------------------------------------------------- *
1912 * Inquiry functions *
1913 * ----------------------------------------------------------- */
1914
1918void fuse_lowlevel_version(void);
1919
1925void fuse_lowlevel_help(void);
1926
1930void fuse_cmdline_help(void);
1931
1932/* ----------------------------------------------------------- *
1933 * Filesystem setup & teardown *
1934 * ----------------------------------------------------------- */
1935
1941 struct fuse_cmdline_opts {
1942 int singlethread;
1943 int foreground;
1944 int debug;
1945 int nodefault_subtype;
1946 char *mountpoint;
1947 int show_version;
1948 int show_help;
1949 int clone_fd;
1950 unsigned int max_idle_threads; /* discouraged, due to thread
1951 * destruct overhead */
1952
1953 /* Added in libfuse-3.12 */
1954 unsigned int max_threads;
1955};
1956
1975#if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
1976int fuse_parse_cmdline(struct fuse_args *args,
1977 struct fuse_cmdline_opts *opts);
1978#else
1979#if FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
1980int fuse_parse_cmdline_30(struct fuse_args *args,
1981 struct fuse_cmdline_opts *opts);
1982#define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_30(args, opts)
1983#else
1984int fuse_parse_cmdline_312(struct fuse_args *args,
1985 struct fuse_cmdline_opts *opts);
1986#define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_312(args, opts)
1987#endif
1988#endif
1989
2018struct fuse_session *fuse_session_new(struct fuse_args *args,
2019 const struct fuse_lowlevel_ops *op,
2020 size_t op_size, void *userdata);
2021
2049int fuse_session_custom_io(struct fuse_session *se,
2050 const struct fuse_custom_io *io, int fd);
2051
2060int fuse_session_mount(struct fuse_session *se, const char *mountpoint);
2061
2084int fuse_session_loop(struct fuse_session *se);
2085
2086#if FUSE_USE_VERSION < 32
2087 int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd);
2088 #define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd)
2089#elif FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
2090 int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config);
2091 #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_32(se, config)
2092#else
2093 #if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
2105 int fuse_session_loop_mt(struct fuse_session *se, struct fuse_loop_config *config);
2106 #else
2107 int fuse_session_loop_mt_312(struct fuse_session *se, struct fuse_loop_config *config);
2108 #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_312(se, config)
2109 #endif
2110#endif
2111
2124 void fuse_session_exit(struct fuse_session *se);
2125
2131 void fuse_session_reset(struct fuse_session *se);
2132
2139 int fuse_session_exited(struct fuse_session *se);
2140
2165void fuse_session_unmount(struct fuse_session *se);
2166
2172void fuse_session_destroy(struct fuse_session *se);
2173
2174/* ----------------------------------------------------------- *
2175 * Custom event loop support *
2176 * ----------------------------------------------------------- */
2177
2192int fuse_session_fd(struct fuse_session *se);
2193
2202void fuse_session_process_buf(struct fuse_session *se,
2203 const struct fuse_buf *buf);
2204
2216int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf);
2217
2218#ifdef __cplusplus
2219}
2220#endif
2221
2222#endif /* FUSE_LOWLEVEL_H_ */
fuse_common.h
fuse_buf_copy_flags
fuse_buf_copy_flags
Definition: fuse_common.h:703
fuse_session_destroy
void fuse_session_destroy(struct fuse_session *se)
Definition: fuse_lowlevel.c:2813
fuse_notify_entry_flags
fuse_notify_entry_flags
Definition: fuse_lowlevel.h:146
fuse_reply_data
int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv, enum fuse_buf_copy_flags flags)
Definition: fuse_lowlevel.c:874
fuse_reply_lock
int fuse_reply_lock(fuse_req_t req, const struct flock *lock)
Definition: fuse_lowlevel.c:918
fuse_reply_open
int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi)
Definition: fuse_lowlevel.c:469
fuse_session_exit
void fuse_session_exit(struct fuse_session *se)
fuse_interrupt_func_t
void(* fuse_interrupt_func_t)(fuse_req_t req, void *data)
Definition: fuse_lowlevel.h:1886
fuse_reply_poll
int fuse_reply_poll(fuse_req_t req, unsigned revents)
Definition: fuse_lowlevel.c:1078
fuse_reply_err
int fuse_reply_err(fuse_req_t req, int err)
Definition: fuse_lowlevel.c:324
fuse_req_ctx
const struct fuse_ctx * fuse_req_ctx(fuse_req_t req)
Definition: fuse_lowlevel.c:2534
fuse_req_userdata
void * fuse_req_userdata(fuse_req_t req)
Definition: fuse_lowlevel.c:2529
fuse_reply_buf
int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size)
Definition: fuse_lowlevel.c:488
fuse_req_t
struct fuse_req * fuse_req_t
Definition: fuse_lowlevel.h:49
fuse_add_direntry_plus
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)
Definition: fuse_lowlevel.c:369
fuse_reply_ioctl_iov
int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov, int count)
Definition: fuse_lowlevel.c:1054
fuse_lowlevel_notify_delete
int fuse_lowlevel_notify_delete(struct fuse_session *se, fuse_ino_t parent, fuse_ino_t child, const char *name, size_t namelen)
Definition: fuse_lowlevel.c:2378
fuse_session_process_buf
void fuse_session_process_buf(struct fuse_session *se, const struct fuse_buf *buf)
Definition: fuse_lowlevel.c:2640
fuse_session_exited
int fuse_session_exited(struct fuse_session *se)
fuse_session_fd
int fuse_session_fd(struct fuse_session *se)
Definition: fuse_lowlevel.c:3194
fuse_req_interrupted
int fuse_req_interrupted(fuse_req_t req)
Definition: fuse_lowlevel.c:2552
fuse_req_getgroups
int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
Definition: fuse_lowlevel.c:3272
fuse_lowlevel_notify_retrieve
int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino, size_t size, off_t offset, void *cookie)
Definition: fuse_lowlevel.c:2484
fuse_reply_readlink
int fuse_reply_readlink(fuse_req_t req, const char *link)
Definition: fuse_lowlevel.c:464
fuse_session_loop
int fuse_session_loop(struct fuse_session *se)
Definition: fuse_loop.c:19
fuse_reply_iov
int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count)
Definition: fuse_lowlevel.c:258
fuse_reply_bmap
int fuse_reply_bmap(fuse_req_t req, uint64_t idx)
Definition: fuse_lowlevel.c:935
fuse_reply_entry
int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e)
Definition: fuse_lowlevel.c:417
fuse_session_unmount
void fuse_session_unmount(struct fuse_session *se)
Definition: fuse_lowlevel.c:3199
fuse_cmdline_help
void fuse_cmdline_help(void)
Definition: helper.c:130
fuse_session_new
struct fuse_session * fuse_session_new(struct fuse_args *args, const struct fuse_lowlevel_ops *op, size_t op_size, void *userdata)
Definition: fuse_lowlevel.c:3014
fuse_reply_none
void fuse_reply_none(fuse_req_t req)
Definition: fuse_lowlevel.c:329
fuse_lowlevel_notify_expire_entry
int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen)
Definition: fuse_lowlevel.c:2365
fuse_reply_ioctl_retry
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)
Definition: fuse_lowlevel.c:963
fuse_lowlevel_help
void fuse_lowlevel_help(void)
Definition: fuse_lowlevel.c:2803
fuse_lowlevel_notify_inval_inode
int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino, off_t off, off_t len)
Definition: fuse_lowlevel.c:2291
fuse_reply_statfs
int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)
Definition: fuse_lowlevel.c:896
fuse_reply_write
int fuse_reply_write(fuse_req_t req, size_t count)
Definition: fuse_lowlevel.c:478
fuse_session_receive_buf
int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf)
Definition: fuse_lowlevel.c:2842
fuse_session_mount
int fuse_session_mount(struct fuse_session *se, const char *mountpoint)
Definition: fuse_lowlevel.c:3144
fuse_parse_cmdline_30
int fuse_parse_cmdline_30(struct fuse_args *args, struct fuse_cmdline_opts *opts)
Definition: helper.c:237
fuse_lowlevel_notify_poll
int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph)
Definition: fuse_lowlevel.c:2274
fuse_lowlevel_notify_inval_entry
int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen)
Definition: fuse_lowlevel.c:2359
fuse_req_interrupt_func
void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func, void *data)
Definition: fuse_lowlevel.c:2539
fuse_session_reset
void fuse_session_reset(struct fuse_session *se)
fuse_session_custom_io
int fuse_session_custom_io(struct fuse_session *se, const struct fuse_custom_io *io, int fd)
Definition: fuse_lowlevel.c:3110
fuse_reply_create
int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e, const struct fuse_file_info *fi)
Definition: fuse_lowlevel.c:433
fuse_reply_lseek
int fuse_reply_lseek(fuse_req_t req, off_t off)
Definition: fuse_lowlevel.c:1088
fuse_lowlevel_version
void fuse_lowlevel_version(void)
Definition: fuse_lowlevel.c:2796
fuse_ino_t
uint64_t fuse_ino_t
Definition: fuse_lowlevel.h:46
fuse_add_direntry
size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off)
Definition: fuse_lowlevel.c:279
fuse_reply_attr
int fuse_reply_attr(fuse_req_t req, const struct stat *attr, double attr_timeout)
Definition: fuse_lowlevel.c:449
fuse_reply_ioctl
int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size)
Definition: fuse_lowlevel.c:1033
fuse_lowlevel_notify_store
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)
Definition: fuse_lowlevel.c:2404
fuse_reply_xattr
int fuse_reply_xattr(fuse_req_t req, size_t count)
Definition: fuse_lowlevel.c:908
fuse_args
Definition: fuse_opt.h:109
fuse_buf
Definition: fuse_common.h:748
fuse_bufvec
Definition: fuse_common.h:789
fuse_bufvec::off
size_t off
Definition: fuse_common.h:803
fuse_bufvec::count
size_t count
Definition: fuse_common.h:793
fuse_cmdline_opts
Definition: fuse_lowlevel.h:1941
fuse_conn_info
Definition: fuse_common.h:467
fuse_ctx
Definition: fuse_lowlevel.h:111
fuse_ctx::pid
pid_t pid
Definition: fuse_lowlevel.h:119
fuse_ctx::gid
gid_t gid
Definition: fuse_lowlevel.h:116
fuse_ctx::umask
mode_t umask
Definition: fuse_lowlevel.h:122
fuse_ctx::uid
uid_t uid
Definition: fuse_lowlevel.h:113
fuse_entry_param
Definition: fuse_lowlevel.h:59
fuse_entry_param::entry_timeout
double entry_timeout
Definition: fuse_lowlevel.h:100
fuse_entry_param::ino
fuse_ino_t ino
Definition: fuse_lowlevel.h:67
fuse_entry_param::generation
uint64_t generation
Definition: fuse_lowlevel.h:79
fuse_entry_param::attr_timeout
double attr_timeout
Definition: fuse_lowlevel.h:94
fuse_entry_param::attr
struct stat attr
Definition: fuse_lowlevel.h:88
fuse_file_info
Definition: fuse_common.h:50
fuse_file_info::flags
int flags
Definition: fuse_common.h:52
fuse_loop_config
Definition: fuse_common.h:126
fuse_lowlevel_ops
Definition: fuse_lowlevel.h:201
fuse_lowlevel_ops::fsync
void(* fsync)(fuse_req_t req, fuse_ino_t ino, int datasync, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:690
fuse_lowlevel_ops::bmap
void(* bmap)(fuse_req_t req, fuse_ino_t ino, size_t blocksize, uint64_t idx)
Definition: fuse_lowlevel.h:1025
fuse_lowlevel_ops::unlink
void(* unlink)(fuse_req_t req, fuse_ino_t parent, const char *name)
Definition: fuse_lowlevel.h:404
fuse_lowlevel_ops::getxattr
void(* getxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, size_t size)
Definition: fuse_lowlevel.h:862
fuse_lowlevel_ops::rename
void(* rename)(fuse_req_t req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname, unsigned int flags)
Definition: fuse_lowlevel.h:467
fuse_lowlevel_ops::releasedir
void(* releasedir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:780
fuse_lowlevel_ops::setxattr
void(* setxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, const char *value, size_t size, int flags)
Definition: fuse_lowlevel.h:831
fuse_lowlevel_ops::write_buf
void(* write_buf)(fuse_req_t req, fuse_ino_t ino, struct fuse_bufvec *bufv, off_t off, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:1125
fuse_lowlevel_ops::symlink
void(* symlink)(fuse_req_t req, const char *link, fuse_ino_t parent, const char *name)
Definition: fuse_lowlevel.h:435
fuse_lowlevel_ops::statfs
void(* statfs)(fuse_req_t req, fuse_ino_t ino)
Definition: fuse_lowlevel.h:818
fuse_lowlevel_ops::release
void(* release)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:668
fuse_lowlevel_ops::readdir
void(* readdir)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:761
fuse_lowlevel_ops::fallocate
void(* fallocate)(fuse_req_t req, fuse_ino_t ino, int mode, off_t offset, off_t length, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:1196
fuse_lowlevel_ops::create
void(* create)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:961
fuse_lowlevel_ops::link
void(* link)(fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent, const char *newname)
Definition: fuse_lowlevel.h:483
fuse_lowlevel_ops::write
void(* write)(fuse_req_t req, fuse_ino_t ino, const char *buf, size_t size, off_t off, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:599
fuse_lowlevel_ops::lookup
void(* lookup)(fuse_req_t req, fuse_ino_t parent, const char *name)
Definition: fuse_lowlevel.h:244
fuse_lowlevel_ops::readdirplus
void(* readdirplus)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:1224
fuse_lowlevel_ops::flock
void(* flock)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, int op)
Definition: fuse_lowlevel.h:1173
fuse_lowlevel_ops::getattr
void(* getattr)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:303
fuse_lowlevel_ops::copy_file_range
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)
Definition: fuse_lowlevel.h:1257
fuse_lowlevel_ops::setattr
void(* setattr)(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:340
fuse_lowlevel_ops::open
void(* open)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:542
fuse_lowlevel_ops::removexattr
void(* removexattr)(fuse_req_t req, fuse_ino_t ino, const char *name)
Definition: fuse_lowlevel.h:910
fuse_lowlevel_ops::forget
void(* forget)(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup)
Definition: fuse_lowlevel.h:282
fuse_lowlevel_ops::poll
void(* poll)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct fuse_pollhandle *ph)
Definition: fuse_lowlevel.h:1095
fuse_lowlevel_ops::ioctl
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)
Definition: fuse_lowlevel.h:1061
fuse_lowlevel_ops::rmdir
void(* rmdir)(fuse_req_t req, fuse_ino_t parent, const char *name)
Definition: fuse_lowlevel.h:421
fuse_lowlevel_ops::init
void(* init)(void *userdata, struct fuse_conn_info *conn)
Definition: fuse_lowlevel.h:218
fuse_lowlevel_ops::setlk
void(* setlk)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct flock *lock, int sleep)
Definition: fuse_lowlevel.h:1001
fuse_lowlevel_ops::retrieve_reply
void(* retrieve_reply)(fuse_req_t req, void *cookie, fuse_ino_t ino, off_t offset, struct fuse_bufvec *bufv)
Definition: fuse_lowlevel.h:1141
fuse_lowlevel_ops::fsyncdir
void(* fsyncdir)(fuse_req_t req, fuse_ino_t ino, int datasync, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:805
fuse_lowlevel_ops::destroy
void(* destroy)(void *userdata)
Definition: fuse_lowlevel.h:231
fuse_lowlevel_ops::mkdir
void(* mkdir)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode)
Definition: fuse_lowlevel.h:386
fuse_lowlevel_ops::access
void(* access)(fuse_req_t req, fuse_ino_t ino, int mask)
Definition: fuse_lowlevel.h:932
fuse_lowlevel_ops::mknod
void(* mknod)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, dev_t rdev)
Definition: fuse_lowlevel.h:371
fuse_lowlevel_ops::lseek
void(* lseek)(fuse_req_t req, fuse_ino_t ino, off_t off, int whence, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:1281
fuse_lowlevel_ops::getlk
void(* getlk)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct flock *lock)
Definition: fuse_lowlevel.h:976
fuse_lowlevel_ops::readlink
void(* readlink)(fuse_req_t req, fuse_ino_t ino)
Definition: fuse_lowlevel.h:353
fuse_lowlevel_ops::read
void(* read)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:570
fuse_lowlevel_ops::flush
void(* flush)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:640
fuse_lowlevel_ops::listxattr
void(* listxattr)(fuse_req_t req, fuse_ino_t ino, size_t size)
Definition: fuse_lowlevel.h:893
fuse_lowlevel_ops::opendir
void(* opendir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition: fuse_lowlevel.h:715
fuse_lowlevel_ops::forget_multi
void(* forget_multi)(fuse_req_t req, size_t count, struct fuse_forget_data *forgets)
Definition: fuse_lowlevel.h:1155