1 Star 2 Fork 2

成坚 (CHENG Jian)/linux_kernel

forked from 老马Robot/linux_kernel 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hello_module.c 810 Bytes
一键复制 编辑 原始数据 按行查看 历史
linuxsir 提交于 2015-09-08 22:27 +08:00 . first module
/*
* =====================================================================================
*
* Filename: hello_module.c
*
* Description: 模块练习
*
* Version: 1.0
* Created: 2015年09月08日 16时23分08秒
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#include <linux/module.h>
#include <linux/init.h>
MODULE_LICENSE("GPL");
MODULE_AUTHOR("magc");
MODULE_DESCRIPTION("Hello Module");
static int __init hello_init(void)
{
printk(KERN_ERR "hello world!\n");
return 0;
}
static void __exit hello_exit(void)
{
printk(KERN_ERR "hello_exit!\n");
}
module_init(hello_init);
module_exit(hello_exit);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/gatieme/linux_kernel.git
git@gitee.com:gatieme/linux_kernel.git
gatieme
linux_kernel
linux_kernel
master

搜索帮助