首页
文章
活动
博客
图书
招聘
Search
登录
注册
第四章 简单内核模块的测试
2010-05-27
张芳芳
1.基础知识:
设备驱动程序是用于驱动硬件的程序库,而内核模块是内核运行中可动态加载的内核程序库。
2.内核模块的编程
(1)执行方法
[root@]#make 生成内核模块文件test.o(举例)文件
[root@]#insmod test.o 将内核模块文件加载到内核
[root@]#dmesg 查看运行结果
[root@]#lsmod 查看内核中是否包含了test.o模块
[root@]#rmmod test 卸载内核模块
(有点忙,待续)
0
该文章对我有帮助
407°
/
4072 人阅读
/
0 条评论
发表评论
请
登录
后发表评论
张芳芳
访客 25106
张芳芳
的其他博文
更多
阶段总结1
Linux 开机启动[root@localhost]变成bash-3.2#解决方法
第二章 Linux内核与设备驱动程序
Ubuntu10.04 安装vim 软件源问题
让电脑替你说:"I IOVE YOU",发给心爱的人。
Fedora安装VMware Tools后鼠标滚轮不能用的解决方法
nand读写命令
linux终端使用技巧
Fedora安装vmware-tools问题
内核启动kernel panic-not syncing:No init found.Try passing init=option to kernel