bpf_preload.h 394 B

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