mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-04 02:34:16 +08:00
12 lines
371 B
C
12 lines
371 B
C
// Compatible for lower kernel versions. No need in 6.11.
|
|
#ifndef BTF_SET8_KFUNCS
|
|
/* This flag implies BTF_SET8 holds kfunc(s) */
|
|
#define BTF_SET8_KFUNCS (1 << 0)
|
|
#endif
|
|
#ifndef BTF_KFUNCS_START
|
|
#define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS };
|
|
#endif
|
|
#ifndef BTF_KFUNCS_END
|
|
#define BTF_KFUNCS_END(name)
|
|
#endif
|