lttng-abi: Document ioctl numbers reserved by lttng-abi-old.h
[lttng-modules.git] / wrapper / uaccess.h
CommitLineData
80bb2600
MJ
1/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
2 *
3 * wrapper/uaccess.h
4 *
5 * wrapper around linux/uaccess.h.
6 *
7 * Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
8 */
9
10#ifndef _LTTNG_WRAPPER_UACCESS_H
11#define _LTTNG_WRAPPER_UACCESS_H
12
13#include <linux/uaccess.h>
14#include <lttng-kernel-version.h>
15
16#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
17
18#define VERIFY_READ 0
19#define VERIFY_WRITE 1
20#define lttng_access_ok(type, addr, size) access_ok(addr, size)
21
22#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) */
23
24#define lttng_access_ok(type, addr, size) access_ok(type, addr, size)
25
26#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) */
27
28#endif /* _LTTNG_WRAPPER_UACCESS_H */
This page took 0.02412 seconds and 4 git commands to generate.