sessiond: kernel: make modules required/optional property per-module
[lttng-tools.git] / src / bin / lttng-sessiond / kern-modules.h
CommitLineData
096102bd 1/*
ab5be9fa 2 * Copyright (C) 2011 David Goulet <dgoulet@efficios.com>
096102bd 3 *
ab5be9fa 4 * SPDX-License-Identifier: GPL-2.0-only
096102bd 5 *
096102bd
DG
6 */
7
8#ifndef _KERN_MODULES_H
9#define _KERN_MODULES_H
10
11/*
12 * Compatible lttng-modules version.
13 */
a62a6556
MD
14#define KERN_MODULES_PRE_MAJOR 1
15#define KERN_MODULES_PRE_MINOR 9
61f82615 16
a62a6556
MD
17#define KERN_MODULES_MAJOR 2
18#define KERN_MODULES_MINOR 0
096102bd 19
adfe4f5e
JG
20enum kernel_module_property_load_policy {
21 KERNEL_MODULE_PROPERTY_LOAD_POLICY_REQUIRED = 0,
22 KERNEL_MODULE_PROPERTY_LOAD_POLICY_OPTIONAL = 1,
23};
24
096102bd 25struct kern_modules_param {
fbb9748b 26 char *name;
adfe4f5e 27 enum kernel_module_property_load_policy load_policy;
4ad664a0 28 bool loaded;
096102bd
DG
29};
30
31#endif /* _KERN_MODULES_H */
This page took 0.083546 seconds and 4 git commands to generate.