Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _BPF_PRELOAD_H | ||||
3 | #define _BPF_PRELOAD_H | ||||
4 | |||||
5 | #include <linux/usermode_driver.h> | ||||
6 | #include "iterators/bpf_preload_common.h" | ||||
7 | |||||
8 | struct bpf_preload_ops { | ||||
9 | struct umd_info info; | ||||
10 | int (*preload)(struct bpf_preload_info *); | ||||
11 | int (*finish)(void); | ||||
12 | struct module *owner; | ||||
13 | }; | ||||
14 | extern struct bpf_preload_ops *bpf_preload_ops; | ||||
15 | #define BPF_PRELOAD_LINKS 2 | ||||
16 | #endif |