Linux内核编程:从hello world 开始-(3)_run
2014-12-27 22:49
435 查看
/* *File : test.c *Author : DavidLin *Date : 2014-12-07pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001 *history : editor time do * 1)LinPeng 2014-12-07 created this file! * 2) */
1.获得root权限:su root;
2.make
3.insmod ./test.ko
4.rmmod test
5.tail -n 3 /var/log/messages
6.lsmod
执行完上述流程,就可以看到内核打印信息了,其中lsmod可以看到test模块的靓影,欢迎来到内核的世界,Hello World。
相关文章推荐
- Linux内核编程:从hello world 开始-(3)_run
- 程序员诗词大赛开始了_你看过吗?
- Linux内核编程:从hello world 开始-(1)_C文件编写
- Linux内核编程:Linux2.6内核源码解析_进程遍历
- Linux内核编程:从hello world 开始-(2)_Makefile文件编写
- Linux内核编程:从hello world 开始-(1)_C文件编写
- Linux内核编程:从hello world 开始-(2)_Makefile文件编写
- js multiple language
- [置顶] 那一年,我们二十七八岁
- SaltStack Runners
- 干货!总结19个提升iOS开发技术的必看教程!
- 数据结构和算法-010 数组排序 希儿排序
- [置顶] MFC中调用WPF教程
- ≡ - 3 - 宝 贝√”
- [置顶] 最简单的tab切换
- OpenSessionInViewFilter 的配置及作用
- 金笛电信级邮件运营平台
- 网线 线序乱,网不稳
- 由“Hello World”开始