aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_uring_i.h
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-03-26 01:25:23 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-04-28 19:57:39 +0200
commit988ef1172255dfc3abfc99097ceddfa9e1da66cd (patch)
tree7bd184f8b5fc8f71dd63a2d5ed27a973cf7f3a2b /lib/fuse_uring_i.h
parentd4abf661f9948075e1f043a825c37bdaa660f911 (diff)
downloadlibfuse-988ef1172255dfc3abfc99097ceddfa9e1da66cd.tar.gz
Add fuse-io-uring reply support
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/fuse_uring_i.h')
-rw-r--r--lib/fuse_uring_i.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/fuse_uring_i.h b/lib/fuse_uring_i.h
index e9f2989..40cda5b 100644
--- a/lib/fuse_uring_i.h
+++ b/lib/fuse_uring_i.h
@@ -27,6 +27,12 @@ struct fuse_in_header;
int fuse_uring_start(struct fuse_session *se);
int fuse_uring_stop(struct fuse_session *se);
+int send_reply_uring(fuse_req_t req, int error, const void *arg,
+ size_t argsize);
+
+int fuse_reply_data_uring(fuse_req_t req, struct fuse_bufvec *bufv,
+ enum fuse_buf_copy_flags flags);
+int fuse_send_msg_uring(fuse_req_t req, struct iovec *iov, int count);
#else // HAVE_URING
@@ -40,6 +46,29 @@ static inline int fuse_uring_stop(struct fuse_session *se FUSE_VAR_UNUSED)
return -ENOTSUP;
}
+static inline int send_reply_uring(fuse_req_t req FUSE_VAR_UNUSED,
+ int error FUSE_VAR_UNUSED,
+ const void *arg FUSE_VAR_UNUSED,
+ size_t argsize FUSE_VAR_UNUSED)
+{
+ return -ENOTSUP;
+}
+
+static inline int
+fuse_reply_data_uring(fuse_req_t req FUSE_VAR_UNUSED,
+ struct fuse_bufvec *bufv FUSE_VAR_UNUSED,
+ enum fuse_buf_copy_flags flags FUSE_VAR_UNUSED)
+{
+ return -ENOTSUP;
+}
+
+static inline int fuse_send_msg_uring(fuse_req_t req FUSE_VAR_UNUSED,
+ struct iovec *iov FUSE_VAR_UNUSED,
+ int count FUSE_VAR_UNUSED)
+{
+ return -ENOTSUP;
+}
+
#endif // HAVE_URING
#endif // FUSE_URING_I_H_