libfuse: fuse-3.17.4/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 <stddef.h>
28#include <utime.h>
29#include <fcntl.h>
30#include <sys/types.h>
31#include <sys/stat.h>
32#include <sys/statvfs.h>
33#include <sys/uio.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/* ----------------------------------------------------------- *
40 * Miscellaneous definitions *
41 * ----------------------------------------------------------- */
42
44#define FUSE_ROOT_ID 1
45
47 typedef uint64_t fuse_ino_t;
48
50 typedef struct fuse_req *fuse_req_t;
51
57struct fuse_session;
58
60 struct fuse_entry_param {
68 fuse_ino_t ino;
69
80 uint64_t generation;
81
89 struct stat attr;
90
95 double attr_timeout;
96
101 double entry_timeout;
102};
103
112 struct fuse_ctx {
114 uid_t uid;
115
117 gid_t gid;
118
120 pid_t pid;
121
123 mode_t umask;
124};
125
126struct fuse_forget_data {
127 fuse_ino_t ino;
128 uint64_t nlookup;
129};
130
131struct fuse_custom_io {
132 ssize_t (*writev)(int fd, struct iovec *iov, int count, void *userdata);
133 ssize_t (*read)(int fd, void *buf, size_t buf_len, void *userdata);
134 ssize_t (*splice_receive)(int fdin, off_t *offin, int fdout,
135 off_t *offout, size_t len,
136 unsigned int flags, void *userdata);
137 ssize_t (*splice_send)(int fdin, off_t *offin, int fdout,
138 off_t *offout, size_t len,
139 unsigned int flags, void *userdata);
140 int (*clone_fd)(int master_fd);
141};
142
148 enum fuse_notify_entry_flags {
149 FUSE_LL_INVALIDATE = 0,
150 FUSE_LL_EXPIRE_ONLY = (1 << 0),
151};
152
153/* 'to_set' flags in setattr */
154#define FUSE_SET_ATTR_MODE (1 << 0)
155#define FUSE_SET_ATTR_UID (1 << 1)
156#define FUSE_SET_ATTR_GID (1 << 2)
157#define FUSE_SET_ATTR_SIZE (1 << 3)
158#define FUSE_SET_ATTR_ATIME (1 << 4)
159#define FUSE_SET_ATTR_MTIME (1 << 5)
160#define FUSE_SET_ATTR_ATIME_NOW (1 << 7)
161#define FUSE_SET_ATTR_MTIME_NOW (1 << 8)
162#define FUSE_SET_ATTR_FORCE (1 << 9)
163#define FUSE_SET_ATTR_CTIME (1 << 10)
164#define FUSE_SET_ATTR_KILL_SUID (1 << 11)
165#define FUSE_SET_ATTR_KILL_SGID (1 << 12)
166#define FUSE_SET_ATTR_FILE (1 << 13)
167#define FUSE_SET_ATTR_KILL_PRIV (1 << 14)
168#define FUSE_SET_ATTR_OPEN (1 << 15)
169#define FUSE_SET_ATTR_TIMES_SET (1 << 16)
170#define FUSE_SET_ATTR_TOUCH (1 << 17)
171
172/* ----------------------------------------------------------- *
173 * Request methods and replies *
174 * ----------------------------------------------------------- */
175
206 struct fuse_lowlevel_ops {
223 void (*init) (void *userdata, struct fuse_conn_info *conn);
224
236 void (*destroy) (void *userdata);
237
249 void (*lookup) (fuse_req_t req, fuse_ino_t parent, const char *name);
250
287 void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);
288
308 void (*getattr) (fuse_req_t req, fuse_ino_t ino,
309 struct fuse_file_info *fi);
310
345 void (*setattr) (fuse_req_t req, fuse_ino_t ino, struct stat *attr,
346 int to_set, struct fuse_file_info *fi);
347
358 void (*readlink) (fuse_req_t req, fuse_ino_t ino);
359
376 void (*mknod) (fuse_req_t req, fuse_ino_t parent, const char *name,
377 mode_t mode, dev_t rdev);
378
391 void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
392 mode_t mode);
393
409 void (*unlink) (fuse_req_t req, fuse_ino_t parent, const char *name);
410
426 void (*rmdir) (fuse_req_t req, fuse_ino_t parent, const char *name);
427
440 void (*symlink) (fuse_req_t req, const char *link, fuse_ino_t parent,
441 const char *name);
442
472 void (*rename) (fuse_req_t req, fuse_ino_t parent, const char *name,
473 fuse_ino_t newparent, const char *newname,
474 unsigned int flags);
475
488 void (*link) (fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent,
489 const char *newname);
490
554 void (*open) (fuse_req_t req, fuse_ino_t ino,
555 struct fuse_file_info *fi);
556
582 void (*read) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
583 struct fuse_file_info *fi);
584
611 void (*write) (fuse_req_t req, fuse_ino_t ino, const char *buf,
612 size_t size, off_t off, struct fuse_file_info *fi);
613
652 void (*flush) (fuse_req_t req, fuse_ino_t ino,
653 struct fuse_file_info *fi);
654
680 void (*release) (fuse_req_t req, fuse_ino_t ino,
681 struct fuse_file_info *fi);
682
702 void (*fsync) (fuse_req_t req, fuse_ino_t ino, int datasync,
703 struct fuse_file_info *fi);
704
734 void (*opendir) (fuse_req_t req, fuse_ino_t ino,
735 struct fuse_file_info *fi);
736
780 void (*readdir) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
781 struct fuse_file_info *fi);
782
799 void (*releasedir) (fuse_req_t req, fuse_ino_t ino,
800 struct fuse_file_info *fi);
801
824 void (*fsyncdir) (fuse_req_t req, fuse_ino_t ino, int datasync,
825 struct fuse_file_info *fi);
826
837 void (*statfs) (fuse_req_t req, fuse_ino_t ino);
838
850 void (*setxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
851 const char *value, size_t size, int flags);
852
881 void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
882 size_t size);
883
912 void (*listxattr) (fuse_req_t req, fuse_ino_t ino, size_t size);
913
929 void (*removexattr) (fuse_req_t req, fuse_ino_t ino, const char *name);
930
951 void (*access) (fuse_req_t req, fuse_ino_t ino, int mask);
952
980 void (*create) (fuse_req_t req, fuse_ino_t parent, const char *name,
981 mode_t mode, struct fuse_file_info *fi);
982
995 void (*getlk) (fuse_req_t req, fuse_ino_t ino,
996 struct fuse_file_info *fi, struct flock *lock);
997
1020 void (*setlk) (fuse_req_t req, fuse_ino_t ino,
1021 struct fuse_file_info *fi,
1022 struct flock *lock, int sleep);
1023
1044 void (*bmap) (fuse_req_t req, fuse_ino_t ino, size_t blocksize,
1045 uint64_t idx);
1046
1047#if FUSE_USE_VERSION < 35
1048 void (*ioctl) (fuse_req_t req, fuse_ino_t ino, int cmd,
1049 void *arg, struct fuse_file_info *fi, unsigned flags,
1050 const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1051#else
1080 void (*ioctl) (fuse_req_t req, fuse_ino_t ino, unsigned int cmd,
1081 void *arg, struct fuse_file_info *fi, unsigned flags,
1082 const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1083#endif
1084
1117 void (*poll) (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi,
1118 struct fuse_pollhandle *ph);
1119
1147 void (*write_buf) (fuse_req_t req, fuse_ino_t ino,
1148 struct fuse_bufvec *bufv, off_t off,
1149 struct fuse_file_info *fi);
1150
1163 void (*retrieve_reply) (fuse_req_t req, void *cookie, fuse_ino_t ino,
1164 off_t offset, struct fuse_bufvec *bufv);
1165
1177 void (*forget_multi) (fuse_req_t req, size_t count,
1178 struct fuse_forget_data *forgets);
1179
1195 void (*flock) (fuse_req_t req, fuse_ino_t ino,
1196 struct fuse_file_info *fi, int op);
1197
1218 void (*fallocate) (fuse_req_t req, fuse_ino_t ino, int mode,
1219 off_t offset, off_t length, struct fuse_file_info *fi);
1220
1246 void (*readdirplus) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
1247 struct fuse_file_info *fi);
1248
1279 void (*copy_file_range) (fuse_req_t req, fuse_ino_t ino_in,
1280 off_t off_in, struct fuse_file_info *fi_in,
1281 fuse_ino_t ino_out, off_t off_out,
1282 struct fuse_file_info *fi_out, size_t len,
1283 int flags);
1284
1303 void (*lseek) (fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
1304 struct fuse_file_info *fi);
1305
1306
1325 void (*tmpfile) (fuse_req_t req, fuse_ino_t parent,
1326 mode_t mode, struct fuse_file_info *fi);
1327
1328};
1329
1351int fuse_reply_err(fuse_req_t req, int err);
1352
1363void fuse_reply_none(fuse_req_t req);
1364
1378int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e);
1379
1398int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e,
1399 const struct fuse_file_info *fi);
1400
1412int fuse_reply_attr(fuse_req_t req, const struct stat *attr,
1413 double attr_timeout);
1414
1425int fuse_reply_readlink(fuse_req_t req, const char *link);
1426
1439int fuse_passthrough_open(fuse_req_t req, int fd);
1440int fuse_passthrough_close(fuse_req_t req, int backing_id);
1441
1456int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi);
1457
1468int fuse_reply_write(fuse_req_t req, size_t count);
1469
1481int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size);
1482
1526int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv,
1527 enum fuse_buf_copy_flags flags);
1528
1540int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count);
1541
1552int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf);
1553
1564int fuse_reply_xattr(fuse_req_t req, size_t count);
1565
1576int fuse_reply_lock(fuse_req_t req, const struct flock *lock);
1577
1588int fuse_reply_bmap(fuse_req_t req, uint64_t idx);
1589
1590/* ----------------------------------------------------------- *
1591 * Filling a buffer in readdir *
1592 * ----------------------------------------------------------- */
1593
1621size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize,
1622 const char *name, const struct stat *stbuf,
1623 off_t off);
1624
1638size_t fuse_add_direntry_plus(fuse_req_t req, char *buf, size_t bufsize,
1639 const char *name,
1640 const struct fuse_entry_param *e, off_t off);
1641
1657int fuse_reply_ioctl_retry(fuse_req_t req,
1658 const struct iovec *in_iov, size_t in_count,
1659 const struct iovec *out_iov, size_t out_count);
1660
1672int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size);
1673
1685int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov,
1686 int count);
1687
1694int fuse_reply_poll(fuse_req_t req, unsigned revents);
1695
1706int fuse_reply_lseek(fuse_req_t req, off_t off);
1707
1708/* ----------------------------------------------------------- *
1709 * Notification *
1710 * ----------------------------------------------------------- */
1711
1719int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph);
1720
1744int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino,
1745 off_t off, off_t len);
1746
1771int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent,
1772 const char *name, size_t namelen);
1773
1802int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent,
1803 const char *name, size_t namelen);
1804
1833int fuse_lowlevel_notify_delete(struct fuse_session *se,
1834 fuse_ino_t parent, fuse_ino_t child,
1835 const char *name, size_t namelen);
1836
1862int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino,
1863 off_t offset, struct fuse_bufvec *bufv,
1864 enum fuse_buf_copy_flags flags);
1894int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino,
1895 size_t size, off_t offset, void *cookie);
1896
1897
1898/* ----------------------------------------------------------- *
1899 * Utility functions *
1900 * ----------------------------------------------------------- */
1901
1908void *fuse_req_userdata(fuse_req_t req);
1909
1919const struct fuse_ctx *fuse_req_ctx(fuse_req_t req);
1920
1940int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[]);
1941
1948 typedef void (*fuse_interrupt_func_t)(fuse_req_t req, void *data);
1949
1961void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func,
1962 void *data);
1963
1970int fuse_req_interrupted(fuse_req_t req);
1971
1972
1973/* ----------------------------------------------------------- *
1974 * Inquiry functions *
1975 * ----------------------------------------------------------- */
1976
1980void fuse_lowlevel_version(void);
1981
1987void fuse_lowlevel_help(void);
1988
1992void fuse_cmdline_help(void);
1993
1994/* ----------------------------------------------------------- *
1995 * Filesystem setup & teardown *
1996 * ----------------------------------------------------------- */
1997
2003 struct fuse_cmdline_opts {
2004 int singlethread;
2005 int foreground;
2006 int debug;
2007 int nodefault_subtype;
2008 char *mountpoint;
2009 int show_version;
2010 int show_help;
2011 int clone_fd;
2012 unsigned int max_idle_threads; /* discouraged, due to thread
2013 * destruct overhead */
2014
2015 /* Added in libfuse-3.12 */
2016 unsigned int max_threads;
2017};
2018
2037#if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
2038int fuse_parse_cmdline(struct fuse_args *args,
2039 struct fuse_cmdline_opts *opts);
2040#else
2041#if FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
2042int fuse_parse_cmdline_30(struct fuse_args *args,
2043 struct fuse_cmdline_opts *opts);
2044#define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_30(args, opts)
2045#else
2046int fuse_parse_cmdline_312(struct fuse_args *args,
2047 struct fuse_cmdline_opts *opts);
2048#define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_312(args, opts)
2049#endif
2050#endif
2051
2052/* Do not call this directly, use fuse_session_new() instead */
2053struct fuse_session *
2054fuse_session_new_versioned(struct fuse_args *args,
2055 const struct fuse_lowlevel_ops *op, size_t op_size,
2056 struct libfuse_version *version, void *userdata);
2057
2086static inline struct fuse_session *
2087fuse_session_new_fn(struct fuse_args *args, const struct fuse_lowlevel_ops *op,
2088 size_t op_size, void *userdata)
2089{
2090 struct libfuse_version version = {
2091 .major = FUSE_MAJOR_VERSION,
2092 .minor = FUSE_MINOR_VERSION,
2093 .hotfix = FUSE_HOTFIX_VERSION,
2094 .padding = 0
2095 };
2096
2097 return fuse_session_new_versioned(args, op, op_size, &version,
2098 userdata);
2099}
2100#define fuse_session_new(args, op, op_size, userdata) \
2101 fuse_session_new_fn(args, op, op_size, userdata)
2102
2103/*
2104 * This should mostly not be called directly, but instead the
2105 * fuse_session_custom_io() should be used.
2106 */
2107int fuse_session_custom_io_317(struct fuse_session *se,
2108 const struct fuse_custom_io *io, size_t op_size, int fd);
2109
2137#if FUSE_MAKE_VERSION(3, 17) <= FUSE_USE_VERSION
2138static inline int fuse_session_custom_io(struct fuse_session *se,
2139 const struct fuse_custom_io *io, size_t op_size, int fd)
2140{
2141 return fuse_session_custom_io_317(se, io, op_size, fd);
2142}
2143#else
2144static inline int fuse_session_custom_io(struct fuse_session *se,
2145 const struct fuse_custom_io *io, int fd)
2146{
2147 return fuse_session_custom_io_317(se, io,
2148 offsetof(struct fuse_custom_io, clone_fd), fd);
2149}
2150#endif
2151
2160int fuse_session_mount(struct fuse_session *se, const char *mountpoint);
2161
2184int fuse_session_loop(struct fuse_session *se);
2185
2186#if FUSE_USE_VERSION < 32
2187 int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd);
2188 #define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd)
2189#elif FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
2190 int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config);
2191 #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_32(se, config)
2192#else
2193 #if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
2205 int fuse_session_loop_mt(struct fuse_session *se, struct fuse_loop_config *config);
2206 #else
2207 int fuse_session_loop_mt_312(struct fuse_session *se, struct fuse_loop_config *config);
2208 #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_312(se, config)
2209 #endif
2210#endif
2211
2224 void fuse_session_exit(struct fuse_session *se);
2225
2231 void fuse_session_reset(struct fuse_session *se);
2232
2239 int fuse_session_exited(struct fuse_session *se);
2240
2265void fuse_session_unmount(struct fuse_session *se);
2266
2272void fuse_session_destroy(struct fuse_session *se);
2273
2274/* ----------------------------------------------------------- *
2275 * Custom event loop support *
2276 * ----------------------------------------------------------- */
2277
2292int fuse_session_fd(struct fuse_session *se);
2293
2302void fuse_session_process_buf(struct fuse_session *se,
2303 const struct fuse_buf *buf);
2304
2316int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf);
2317
2318#ifdef __cplusplus
2319}
2320#endif
2321
2322#endif /* FUSE_LOWLEVEL_H_ */
fuse_buf_copy_flags
fuse_buf_copy_flags
Definition fuse_common.h:829
fuse_session_destroy
void fuse_session_destroy(struct fuse_session *se)
Definition fuse_lowlevel.c:3010
fuse_notify_entry_flags
fuse_notify_entry_flags
Definition fuse_lowlevel.h:148
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:912
fuse_reply_lock
int fuse_reply_lock(fuse_req_t req, const struct flock *lock)
Definition fuse_lowlevel.c:956
fuse_reply_open
int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi)
Definition fuse_lowlevel.c:505
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:1948
fuse_reply_poll
int fuse_reply_poll(fuse_req_t req, unsigned revents)
Definition fuse_lowlevel.c:1116
fuse_reply_err
int fuse_reply_err(fuse_req_t req, int err)
Definition fuse_lowlevel.c:331
fuse_req_ctx
const struct fuse_ctx * fuse_req_ctx(fuse_req_t req)
Definition fuse_lowlevel.c:2718
fuse_req_userdata
void * fuse_req_userdata(fuse_req_t req)
Definition fuse_lowlevel.c:2713
fuse_reply_buf
int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size)
Definition fuse_lowlevel.c:524
fuse_req_t
struct fuse_req * fuse_req_t
Definition fuse_lowlevel.h:50
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:376
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:1092
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:2562
fuse_session_process_buf
void fuse_session_process_buf(struct fuse_session *se, const struct fuse_buf *buf)
Definition fuse_lowlevel.c:2830
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:3534
fuse_req_interrupted
int fuse_req_interrupted(fuse_req_t req)
Definition fuse_lowlevel.c:2736
fuse_req_getgroups
int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
Definition fuse_lowlevel.c:3614
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:2668
fuse_reply_readlink
int fuse_reply_readlink(fuse_req_t req, const char *link)
Definition fuse_lowlevel.c:475
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:265
fuse_reply_bmap
int fuse_reply_bmap(fuse_req_t req, uint64_t idx)
Definition fuse_lowlevel.c:973
fuse_reply_entry
int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e)
Definition fuse_lowlevel.c:428
fuse_session_unmount
void fuse_session_unmount(struct fuse_session *se)
Definition fuse_lowlevel.c:3539
fuse_cmdline_help
void fuse_cmdline_help(void)
Definition helper.c:130
fuse_reply_none
void fuse_reply_none(fuse_req_t req)
Definition fuse_lowlevel.c:336
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:2549
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:1001
fuse_lowlevel_help
void fuse_lowlevel_help(void)
Definition fuse_lowlevel.c:3000
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:2475
fuse_reply_statfs
int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)
Definition fuse_lowlevel.c:934
fuse_reply_write
int fuse_reply_write(fuse_req_t req, size_t count)
Definition fuse_lowlevel.c:514
fuse_session_receive_buf
int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf)
Definition fuse_lowlevel.c:3285
fuse_session_mount
int fuse_session_mount(struct fuse_session *se, const char *mountpoint)
Definition fuse_lowlevel.c:3473
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:2458
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:2543
fuse_req_interrupt_func
void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func, void *data)
Definition fuse_lowlevel.c:2723
fuse_session_reset
void fuse_session_reset(struct fuse_session *se)
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:444
fuse_reply_lseek
int fuse_reply_lseek(fuse_req_t req, off_t off)
Definition fuse_lowlevel.c:1126
fuse_lowlevel_version
void fuse_lowlevel_version(void)
Definition fuse_lowlevel.c:2993
fuse_ino_t
uint64_t fuse_ino_t
Definition fuse_lowlevel.h:47
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:286
fuse_reply_attr
int fuse_reply_attr(fuse_req_t req, const struct stat *attr, double attr_timeout)
Definition fuse_lowlevel.c:460
fuse_reply_ioctl
int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size)
Definition fuse_lowlevel.c:1071
fuse_passthrough_open
int fuse_passthrough_open(fuse_req_t req, int fd)
Definition fuse_lowlevel.c:480
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:2588
fuse_reply_xattr
int fuse_reply_xattr(fuse_req_t req, size_t count)
Definition fuse_lowlevel.c:946
fuse_common.h
fuse_req_t
struct fuse_req * fuse_req_t
Definition fuse_lowlevel.h:50
fuse_ino_t
uint64_t fuse_ino_t
Definition fuse_lowlevel.h:47
fuse_args
Definition fuse_opt.h:109
fuse_buf
Definition fuse_common.h:874
fuse_bufvec
Definition fuse_common.h:923
fuse_cmdline_opts
Definition fuse_lowlevel.h:2003
fuse_conn_info
Definition fuse_common.h:538
fuse_ctx
Definition fuse_lowlevel.h:112
fuse_ctx::pid
pid_t pid
Definition fuse_lowlevel.h:120
fuse_ctx::gid
gid_t gid
Definition fuse_lowlevel.h:117
fuse_ctx::umask
mode_t umask
Definition fuse_lowlevel.h:123
fuse_ctx::uid
uid_t uid
Definition fuse_lowlevel.h:114
fuse_entry_param
Definition fuse_lowlevel.h:60
fuse_entry_param::entry_timeout
double entry_timeout
Definition fuse_lowlevel.h:101
fuse_entry_param::ino
fuse_ino_t ino
Definition fuse_lowlevel.h:68
fuse_entry_param::generation
uint64_t generation
Definition fuse_lowlevel.h:80
fuse_entry_param::attr_timeout
double attr_timeout
Definition fuse_lowlevel.h:95
fuse_entry_param::attr
struct stat attr
Definition fuse_lowlevel.h:89
fuse_file_info
Definition fuse_common.h:50
fuse_file_info::backing_id
int32_t backing_id
Definition fuse_common.h:119
fuse_file_info::flags
int32_t flags
Definition fuse_common.h:52
fuse_loop_config
Definition fuse_common.h:139
fuse_lowlevel_ops
Definition fuse_lowlevel.h:206
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:1195
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:611
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:1303
fuse_lowlevel_ops::listxattr
void(* listxattr)(fuse_req_t req, fuse_ino_t ino, size_t size)
Definition fuse_lowlevel.h:912
fuse_lowlevel_ops::removexattr
void(* removexattr)(fuse_req_t req, fuse_ino_t ino, const char *name)
Definition fuse_lowlevel.h:929
fuse_lowlevel_ops::forget_multi
void(* forget_multi)(fuse_req_t req, size_t count, struct fuse_forget_data *forgets)
Definition fuse_lowlevel.h:1177
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:1163
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:980
fuse_lowlevel_ops::mkdir
void(* mkdir)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode)
Definition fuse_lowlevel.h:391
fuse_lowlevel_ops::symlink
void(* symlink)(fuse_req_t req, const char *link, fuse_ino_t parent, const char *name)
Definition fuse_lowlevel.h:440
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:1147
fuse_lowlevel_ops::rmdir
void(* rmdir)(fuse_req_t req, fuse_ino_t parent, const char *name)
Definition fuse_lowlevel.h:426
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:488
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:472
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:1279
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:1117
fuse_lowlevel_ops::opendir
void(* opendir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:734
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:376
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:1218
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:345
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:995
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:702
fuse_lowlevel_ops::destroy
void(* destroy)(void *userdata)
Definition fuse_lowlevel.h:236
fuse_lowlevel_ops::forget
void(* forget)(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup)
Definition fuse_lowlevel.h:287
fuse_lowlevel_ops::getattr
void(* getattr)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:308
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:1080
fuse_lowlevel_ops::open
void(* open)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:554
fuse_lowlevel_ops::getxattr
void(* getxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, size_t size)
Definition fuse_lowlevel.h:881
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:824
fuse_lowlevel_ops::init
void(* init)(void *userdata, struct fuse_conn_info *conn)
Definition fuse_lowlevel.h:223
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:582
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:850
fuse_lowlevel_ops::release
void(* release)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:680
fuse_lowlevel_ops::access
void(* access)(fuse_req_t req, fuse_ino_t ino, int mask)
Definition fuse_lowlevel.h:951
fuse_lowlevel_ops::releasedir
void(* releasedir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:799
fuse_lowlevel_ops::tmpfile
void(* tmpfile)(fuse_req_t req, fuse_ino_t parent, mode_t mode, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:1325
fuse_lowlevel_ops::bmap
void(* bmap)(fuse_req_t req, fuse_ino_t ino, size_t blocksize, uint64_t idx)
Definition fuse_lowlevel.h:1044
fuse_lowlevel_ops::readlink
void(* readlink)(fuse_req_t req, fuse_ino_t ino)
Definition fuse_lowlevel.h:358
fuse_lowlevel_ops::lookup
void(* lookup)(fuse_req_t req, fuse_ino_t parent, const char *name)
Definition fuse_lowlevel.h:249
fuse_lowlevel_ops::statfs
void(* statfs)(fuse_req_t req, fuse_ino_t ino)
Definition fuse_lowlevel.h:837
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:780
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:1020
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:1246
fuse_lowlevel_ops::flush
void(* flush)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
Definition fuse_lowlevel.h:652
fuse_lowlevel_ops::unlink
void(* unlink)(fuse_req_t req, fuse_ino_t parent, const char *name)
Definition fuse_lowlevel.h:409
libfuse_version
Definition fuse_common.h:950