aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_uring_i.h
blob: e9f2989086d4d8bcd04b5b0f8dd41f176fa19cd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * FUSE: Filesystem in Userspace
 * Copyright (C) 2025       Bernd Schubert <bschubert@ddn.com>
 * This program can be distributed under the terms of the GNU LGPLv2.
 * See the file COPYING.LIB
 */

#ifndef FUSE_URING_I_H_
#define FUSE_URING_I_H_

#include "fuse_config.h"
#include "fuse_lowlevel.h"
#include "fuse_kernel.h"

#ifndef HAVE_URING
#include "util.h"
#endif

void fuse_session_process_uring_cqe(struct fuse_session *se,
				    struct fuse_req *req,
				    struct fuse_in_header *in, void *in_header,
				    void *in_payload, size_t payload_len);

#ifdef HAVE_URING

struct fuse_in_header;

int fuse_uring_start(struct fuse_session *se);
int fuse_uring_stop(struct fuse_session *se);

#else // HAVE_URING

static inline int fuse_uring_start(struct fuse_session *se FUSE_VAR_UNUSED)
{
	return -ENOTSUP;
}

static inline int fuse_uring_stop(struct fuse_session *se FUSE_VAR_UNUSED)
{
	return -ENOTSUP;
}

#endif // HAVE_URING

#endif // FUSE_URING_I_H_