Linux内核编程:从hello world 开始-(3)_run
2014-12-07 22:30
274 查看
/* *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内核编程:从hello world 开始-(2)_Makefile文件编写
- Linux内核编程:从hello world 开始-(1)_C文件编写
- Linux内核编程:从hello world 开始-(2)_Makefile文件编写
- 由“Hello World”开始
- Hello world开始复习
- linux平台学x86汇编(四):从“hello world!”开始
- 开始VC++之旅。Hello World !
- 第一个程序从Hello world!Objective-c 开始
- lua学习(2)-- 从Hello World 开始
- Prism研究(for WPF & Silverlight)4.从Hello World开始(实战篇)
- 1.开始用Tornado:从Hello World开始 (副标题:了解Tornado代码组织)
- Google Gadgets (1):从 Hello World 开始
- 学习编程,培养兴趣,就从Hello World!开始吧
- 我的C#跨平台之旅(一):从 Hello World 开始
- SpringBoot初使用:从Hello World开始
- 开始 - 运行 - 命令集锦 Start → Run → Command
- 从Hello World开始Azure Service Platform
- Keras-1 学习Keras,从Hello World开始