linux 驱动开始了(Helllo World)
来源:互联网 发布:nba所有状元体测数据 编辑:程序博客网 时间:2024/05/19 02:41
虽然说最近 被各种boss鄙视,心情很不爽。学习是不能误的,毕竟是要跳槽的人
开始我的linux内核之旅
Hello World
#include <linux/init.h> #include <linux/module.h> MODULE_LICENSE("Leok/GPL"); void hello_init() { printk("this is my hello world\n"); } void hello_exit() { printk("I will exit"); } moudle_init(hello_init); module_exit(hello_exit);Makefile
#f KERNELRELEASE is defined, we've been invoked from the # kernel build system and can use its language. ifneq ($(KERNELRELEASE),) obj-m := hello.o # Otherwise we were called directly from the command # line; invoke the kernel build system. else KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif
make完之后就会生成ko文件,就可以加载到内核了
不过记得你的内核是配置好的内核源码树了哦
气愤版本经理,你妹的
- linux 驱动开始了(Helllo World)
- Helllo,world!
- hello world开始linux驱动
- helllo
- Linux hello world 驱动
- linux 驱动 hello world
- Windows程序设计:编写第一个Windows程序Helllo World!
- Linux驱动开发hello world
- 编写linux驱动--Hello World
- linux驱动之Hello world
- linux驱动之Hello World
- 要开始系统学习LINUX USB驱动了(通用的驱动流程)
- linux下hello—world驱动,做成功了,现在总结一下
- linux内核驱动模块编程框架---(hello world模块)
- Linux驱动开发(2):Hello world模块
- linux设备驱动学习(二):Linux驱动模块的相关基础和hello world
- 开始搞LINUX了
- 开始学习Linux了!
- bfs hdu 1252 Hike on a Graph--easy
- 使用MySQLDriverCS调用MYSQL
- Android Service
- STL algorithm学习之adjacent_find()
- Shell命令部分缩写由来
- linux 驱动开始了(Helllo World)
- music player daemon
- Android之GridView
- 内核链表
- nginx源码分析—信号初始化
- Ubuntu10.10 Fedora14 root权限破解
- 设计模式:单例模式
- iPhone开发--过度release一个对象会怎么样
- linux中查看java进程