2021年3月29日

摘要: 这个问题其实是很低级的问题,但是经常还是容易发生,翻译下就是函数的隐式说明 原因: 是因为函数没有在头文件(.h)定义,这就导致编译的时候没法正确生成.o文件 阅读全文
posted @ 2021-03-29 16:47 lydstory 阅读(2534) 评论(0) 推荐(0)
摘要: EXTRA_CFLAGS = -Wall -g -DTEST_KERNEL $(INCLUDE) 假如定义一个宏CONFIG_DEBUG在.c里面定义为:#define CONFIG_DEBUG在makefile里定义为: CONFIG_DEBUG=y假如说我们想在makefile里为.c文件进入一 阅读全文
posted @ 2021-03-29 15:14 lydstory 阅读(507) 评论(0) 推荐(0)
摘要: /usr/src/linux-headers-4.9.0-3-common/arch/x86/include/asm/uaccess.h:33:26: error: dereferencing pointer to incomplete type ‘struct task_struct’ #defi 阅读全文
posted @ 2021-03-29 10:30 lydstory 阅读(792) 评论(0) 推荐(0)
摘要: typedef __kernel_loff_t loff_t;那么这个__kernel_loff_t 又是在哪儿定义的呢? __kernel_loff_t 阅读全文
posted @ 2021-03-29 09:56 lydstory 阅读(108) 评论(0) 推荐(0)
摘要: 驱动操作命令: insmod / modprobe 加载驱动 rmmod 卸载驱动 lsmod 查看系统中所有已经被加载了的所有的模块以及模块间的依赖关系 modinfo 获得模块的信息 查看已经加载的驱动模块的信息: lsmod 能够显示驱动的大小以及被谁使用 cat /proc/modules 阅读全文
posted @ 2021-03-29 08:47 lydstory 阅读(190) 评论(0) 推荐(0)

导航