centos7下编译hello.ko驱动程序
1. 查看内核版本 [root@localhost test]# uname -r 3.10.0-862.el7.x86_64 2. 切换到相应的内核源码中 [root@localhost test]# cd /usr/src/kernels/3.10.0-862.el7.x86_64/drivers/ [root@localhost test]# mkdir test 3. 编写hello.c 及 Makefile cat hello.c: [root@localhost test]# cat hello.c #include #include MODULE_LICENSE(Dua
下载地址
用户评论