Debian Codegraph @

xlators/storage/posix/src/posix-io-uring.h

raw symbols SCIP
1 /*
2 Copyright (c) 2020 Red Hat, Inc. <http://www.redhat.com>
3 This file is part of GlusterFS.
4
5 This file is licensed to you under your choice of the GNU Lesser
6 General Public License, version 3 or any later version (LGPLv3 or
7 later), or the GNU General Public License, version 2 (GPLv2), in all
8 cases as published by the Free Software Foundation.
9 */
10 #ifndef _POSIX_IO_URING_H
11 #define _POSIX_IO_URING_H
12
13 #define POSIX_URING_MAX_ENTRIES 512
14 int
15 posix_io_uring_on(xlator_t *this);
16
17 int
18 posix_io_uring_off(xlator_t *this);
19
20 #ifdef HAVE_LIBURING
21 int
22 posix_readv(call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
23 off_t offset, uint32_t flags, dict_t *xdata);
24
25 int
26 posix_writev(call_frame_t *frame, xlator_t *this, fd_t *fd,
27 struct iovec *vector, int32_t count, off_t offset, uint32_t flags,
28 struct iobref *iobref, dict_t *xdata);
29 #endif
30
31 #endif /* _POSIX_IO_URING_H */