1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
5 * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 #ifndef _LTTNG_WRAPPER_UUID_H
9 #define _LTTNG_WRAPPER_UUID_H
11 #include <linux/version.h>
12 #include <linux/uuid.h>
14 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0))
16 void lttng_guid_gen(guid_t
*u
)
20 #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) */
22 typedef uuid_le guid_t
;
25 void lttng_guid_gen(guid_t
*u
)
27 return uuid_le_gen(u
);
29 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) */
31 #endif /* _LTTNG_WRAPPER_UUID_H */
This page took 0.029802 seconds and 4 git commands to generate.