且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

内核模块构建失败:sys / types.h:没有这样的文件或目录

更新时间:2022-11-05 15:32:11

When you are developing a Linux kernel module, you should forget about the comforts of Standard C library(Glibc).Instead , you will have to use the Kernel C. So , you should write

#include <linux/types.h>

It will solve the problem.