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楼的我更汗。。。。
题目我当然看得懂,我是想问下有谁能指导一下的