mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-13 23:26:09 +08:00
Deploying to gh-pages from @ eunomia-bpf/bpf-developer-tutorial@ab0d1eef08 🚀
This commit is contained in:
11
43-kfuncs/module/compact.h
Normal file
11
43-kfuncs/module/compact.h
Normal file
@@ -0,0 +1,11 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user