首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux proc 驱动二

2012-07-05 
linux proc 驱动21. 首先drivers/base/Kconfig? ?在 ?menu Generic Driver Options? ?下面加入?? ?confi

linux proc 驱动2

1. 首先drivers/base/Kconfig

? ?在 ?menu "Generic Driver Options"

? ?下面加入?

? ?config QVB_OK

? ? ? ?tristate "Proc fortune for qvb3d"

? ? ? ?help

? ? ? ?Fortune for qvb3d

2. 再修改drivers/base/Makefile

?

? ?obj-$(CONFIG_QVB_OK) += proc.o

?

? ?其中proc.o ?的源文件就放在

? ?/drivers/base/proc.c

?

3. 进入内核配置 make menuconfig

? ?Device Drivers---->

? ? ? ? ? ? ? ? Generic Driver Options---->

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Proc fortune for qvb3d

? ?就可以选择加入它了


热点排行