- 编写hello.c文件:
- 编写Makefile:
3. make生成 .ko文件
4. 加载内核驱动
sudo insmod hello.ko
lsmod 查看加载的内核驱动模块
Linux内核驱动学习----第一个内核驱动模块之hello_world
猜你喜欢
转载自blog.csdn.net/weixin_39618542/article/details/103978239
今日推荐
周排行