Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经看到,ebpf 程序不是使用#include <stddef.h>来访问offsetof宏,而是有条件地在prog_kern.c文件中定义宏。包含 stddef.h 是错误的prog_kern.c吗?如果是,我为什么要避免它?
#include <stddef.h>
offsetof
prog_kern.c