Cleanup: Move wrapper/ headers to include/wrapper/
[lttng-modules.git] / include / wrapper / namespace.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
2 *
3 * wrapper/namespace.h
4 *
5 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 * 2019 Michael Jeanson <mjeanson@efficios.com>
7 *
8 */
9
10 #ifndef _LTTNG_WRAPPER_NAMESPACE_H
11 #define _LTTNG_WRAPPER_NAMESPACE_H
12
13 #include <linux/version.h>
14
15 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
16 #define lttng_ns_inum ns.inum
17 #else
18 #define lttng_ns_inum proc_inum
19 #endif
20
21 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
22 #define lttng_user_ns_parent parent
23 #else
24 #define lttng_user_ns_parent creator->user_ns
25 #endif
26
27 #endif /* _LTTNG_WRAPPER_NAMESPACE_H */
This page took 0.028784 seconds and 4 git commands to generate.