- 5
- 0
- 约2万字
- 约 18页
- 2017-01-05 发布于贵州
- 举报
Init进程启动Init进程启动
Init进程启动
asmlinkage void __init start_kernel(void)
{
..........................................
rest_init();
}
static noinline void __init_refok rest_init(void)
__releases(kernel_lock)
{
int pid;
rcu_scheduler_starting();
/*
* We need to spawn init first so that it obtains pid 1, however
* the init task will end up wanting to create kthreads, which, if
* we schedule it before we create kthreadd, will OOPS.
*/
kernel_thread(kernel_init, NULL, CLONE_FS | CLONE_SIGHAND);
numa_default_policy();
pid = kernel_thread(kthreadd, NULL, CLONE_FS | CLONE_FILES);
rcu_read_lock();
kthr
原创力文档

文档评论(0)