Linux内核编程:从hello world 开始-(1)_C文件编写
2014-12-07 22:11
381 查看
/* *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) */ #include <linux/init.h> #include <linux/module.h> static int hello_init(void) { printk("Hello World Insmod\n"); } static void hello_exit(void) { printk("Hello World Rmmod\n"); } module_init(hello_init); module_exit(hello_exit); MODULE_AUTHOR("Linpeng1577"); MODULE_DESCRLPTION("Kernel: Hello World"); MODULE_LICENSE("GPL"); /* End of test.c */
相关文章推荐
- Linux内核编程:从hello world 开始-(1)_C文件编写
- Linux内核编程:从hello world 开始-(2)_Makefile文件编写
- Linux内核编程:从hello world 开始-(2)_Makefile文件编写
- Linux内核编程:从hello world 开始-(3)_run
- 小白从头开始编写第一个Django的Hello World(Mac)
- Linux内核编程:从hello world 开始-(3)_run
- 用Java编写,从1开始打印到100
- 编写高质量的代码应从命名开始
- XPCOM指南-6_开始编写WebLock
- 开始编写Cocosd-x对Java进行调用的测试代码
- 2014年10月10号正式开通CSDN微博,开始原创文章的编写,敬请期待!!
- BlackBerry HTML5 WebWorks——从Hello World开始
- 由“Hello World”开始
- [reprint]如何编写引导程序 Hello World
- 在Redhat9 Linux下安装java开发环境,并编写“Hello world”程序
- Ext.Net控件,简单案例1,让我们从Hello World开始,走进Ext.Net控件的世界!。
- 小朋友学Python(2):编写“Hello World!”
- K.s 活动营销系统 开始编写 4月8日
- 练习2-7 编写一个函数invert(x,p,n),该函数返回对x执行下列操作后的结果:将x从第p位开始的n个(二进制)位求反(即1变成0,0变成1),x的其余各位保持不变。
- 编写第一个Python程序(向Python问个“Hello World“)