1. 首页
  2. 数据库
  3. 其它
  4. centos7下编译hello.ko驱动程序

centos7下编译hello.ko驱动程序

上传者: 2021-02-01 10:10:56上传 PDF文件 27.36KB 热度 14次
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
下载地址
用户评论