Commit | Line | Data |
---|---|---|
a90917c3 MD |
1 | #ifndef _LTTNG_WRAPPER_SPLICE_H |
2 | #define _LTTNG_WRAPPER_SPLICE_H | |
90225db5 MD |
3 | |
4 | /* | |
5 | * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com) | |
6 | * | |
00525d30 | 7 | * wrapper around splice_to_pipe. Using KALLSYMS to get its address when |
90225db5 MD |
8 | * available, else we need to have a kernel that exports this function to GPL |
9 | * modules. | |
10 | * | |
11 | * Dual LGPL v2.1/GPL v2 license. | |
12 | */ | |
13 | ||
90225db5 MD |
14 | #include <linux/splice.h> |
15 | ||
90225db5 | 16 | ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe, |
5dd620fa | 17 | struct splice_pipe_desc *spd); |
90225db5 | 18 | |
45750163 MD |
19 | #ifndef PIPE_DEF_BUFFERS |
20 | #define PIPE_DEF_BUFFERS 16 | |
21 | #endif | |
22 | ||
a90917c3 | 23 | #endif /* _LTTNG_WRAPPER_SPLICE_H */ |