QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1117|回复: 5

内核和问题

[复制链接]
发表于 2004-3-28 13:53:42 | 显示全部楼层 |阅读模式
@内核source中的include文件夹有什么用?与linux中include文件夹有什么不同吗?
@ 内核代码中 的#define xx_xx 01000(等,但不是16位数字) 后面和数字是什么意思?
@ 内核代码中 的#define xxxx_xx 0x.....  后面的16位数字是什么意思?
怎样才能知道如何去定义后面的16位数字(有什么规律或规定?为什么要这样定义?)
那位高人发发功,解释一下吧
发表于 2004-3-30 02:28:22 | 显示全部楼层
that is for kernel module.
give us an example. there are too many defines.
回复

使用道具 举报

 楼主| 发表于 2004-3-30 22:34:31 | 显示全部楼层
For the dir like "linux-x.x.x/arch/i386/boot/video.s" , there are a lot of   '0x......'  hex numbers

还有就像drivers/input/input.c中的前几行中有
#define INPUT_MAJOR     13   
#define INPUT_DEVICES   256   (13,256,有什么意思,为什么是13,256,不是其它数字?)
内核的编译是借助系统的库来进行的咯?
回复

使用道具 举报

发表于 2004-3-30 23:24:46 | 显示全部楼层
i am not good at video. so no idea on that video.s

for input.c pls check documentation/device.txt that contains all number assigned to each block device and character device.
回复

使用道具 举报

 楼主| 发表于 2004-3-30 23:35:55 | 显示全部楼层
Thank you very much!
回复

使用道具 举报

发表于 2004-3-31 00:23:40 | 显示全部楼层
welcome
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-29 11:29 , Processed in 0.072576 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表