a42bd6fb821dcc36476f947aa2667a2e745672ec
[lttng-modules.git] / wrapper / splice.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
2 *
3 * wrapper/splice.h
4 *
5 * wrapper around splice_to_pipe. Using KALLSYMS to get its address when
6 * available, else we need to have a kernel that exports this function to GPL
7 * modules.
8 *
9 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
10 */
11
12 #ifndef _LTTNG_WRAPPER_SPLICE_H
13 #define _LTTNG_WRAPPER_SPLICE_H
14
15 #include <linux/splice.h>
16
17 ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe,
18 struct splice_pipe_desc *spd);
19
20 #ifndef PIPE_DEF_BUFFERS
21 #define PIPE_DEF_BUFFERS 16
22 #endif
23
24 #endif /* _LTTNG_WRAPPER_SPLICE_H */
This page took 0.028985 seconds and 3 git commands to generate.