2011年6月6日

摘要: 本问分析基于Linux 0.11内核,转载请标明出处http://blog.csdn.net/yming0221/archive/2011/06/06/6528490.aspxcopy_mem(int nr, struct task_struct *p)函数是为进程设置段基址,限长,并复制页表。下面是其代码// 设置新任务的代码和数据段基址、限长并复制页表。// nr 为新任务号;p 是新任务数据结构的指针。int copy_mem (int nr, struct task_struct *p){ unsigned long old_data_base, new_data_base, dat. 阅读全文
posted @ 2011-06-06 22:03 yming0221 阅读(257) 评论(0) 推荐(0)

导航