gentoo linux 问题

[复制链接]
查看11 | 回复3 | 2008-10-29 17:24:29 | 显示全部楼层 |阅读模式
Trace the kernel code for
scanf("%s", cmd);
as explained during the class. Tracing kernel code is very complex and demanding.
Don't try to follow all the path. Read the text book for interrupt section and file section
to get the general idea. Sometimes the kernel doesn't call the function directly. Instead
it uses a function pointer stored in some data structure. To find this function, use
printk("%x", func-name); technique to print the address of the function. Then use
"nm vmlinux" to find out the function name.
2楼的我更汗。。。。
题目我当然看得懂,我是想问下有谁能指导一下的

回复

使用道具 举报

千问 | 2008-10-29 17:24:29 | 显示全部楼层
微量的内核代码 scanf ( “ % s的”指令) ; 在解释的阶级。跟踪内核代码是非常复杂和艰巨的。 不要试图后续的所有道路。阅读本书的文字部分的中断和文件节让一般的想法。有时内核并不需要直接的作用。代替它使用函数指针存储在一些数据结构。为了找到这一功能,使用 printk ( “ % x ”的,函数的名称) ;技术,打印地址的功能。然后使用 “纳米vmlinux ”找出函数名称。...
回复

使用道具 举报

千问 | 2008-10-29 17:24:29 | 显示全部楼层
版本兼容性问题,到Gentoo的专业站点看看吧。...
回复

使用道具 举报

千问 | 2008-10-29 17:24:29 | 显示全部楼层
玩 gentoo的都是 高手!百度知道 里 可能有 99.99% 的人不玩 gentoo !你去 专业 论坛 吧!呵呵...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行