^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _BPF_PRELOAD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _BPF_PRELOAD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/usermode_driver.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include "iterators/bpf_preload_common.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) struct bpf_preload_ops {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct umd_info info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) int (*preload)(struct bpf_preload_info *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) int (*finish)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct module *owner;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern struct bpf_preload_ops *bpf_preload_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define BPF_PRELOAD_LINKS 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif