From 538b51feedbcdcd78beefd7517ff19c77c4e4526 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Tue, 15 Apr 2025 20:13:47 +0200 Subject: Add fuse_req_is_uring() to check if a req comes through io-uring This might be useful to optimize code paths. For example, with io-uring the request buffer is valid until the request is replied to, while without io-uring the request buffer is only valid in current thread context. Signed-off-by: Bernd Schubert --- include/fuse_lowlevel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index c7b44d9..138a784 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -2315,6 +2315,11 @@ void fuse_session_process_buf(struct fuse_session *se, */ int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf); +/** + * Check if the request is submitted through fuse-io-uring + */ +bool fuse_req_is_uring(fuse_req_t req); + #ifdef __cplusplus } #endif -- cgit v1.2.3