gdt-A20

导航

2012年1月15日 #

start_kernel----cgroup_init_early<五>

摘要: In kernel/cgroup.c 1 /** 2 * cgroup_init_early - cgroup initialization at system boot 3 * 4 * Initialize cgroups at system boot, and initialize any 5 * subsystems that request early init. 6 */ 7 int __init cgroup_init_early(void) 8 { 9 int i;10 atomic_set(&init_css_set.refcount, 1);11 ... 阅读全文

posted @ 2012-01-15 23:18 gdt-A20 阅读(941) 评论(0) 推荐(0) 编辑

start_kernel---boot_init_stack_canary<四>

摘要: In init/main.c1 /*2 * Set up the the initial canary ASAP:3 */4 boot_init_stack_canary();in arch/arm/include/asm/stackprotector.h 1 /* 2 * Initialize the stackprotector canary value. 3 * 4 * NOTE: this must only be called from functions that never return, 5 * and it must always be inline... 阅读全文

posted @ 2012-01-15 23:14 gdt-A20 阅读(1349) 评论(0) 推荐(0) 编辑

start_kernel---lockdep_init<三>

摘要: 1 /*2 * Need to run as early as possible, to initialize the3 * lockdep hash:4 */5 lockdep_init();位于kernel/lockdep.c 1 void lockdep_init(void) 2 { 3 int i; 4 5 /* 6 * Some architectures have their own start_kernel() 7 * code which calls lockdep_init(), while we also 8... 阅读全文

posted @ 2012-01-15 23:06 gdt-A20 阅读(2441) 评论(0) 推荐(0) 编辑

linux启动流程导读(arm为例)<二>

摘要: 进入init/main.cstart_kernel 1 asmlinkage void __init start_kernel(void) 2 { 3 char * command_line; 4 extern const struct kernel_param __start___param[], __stop___param[]; 5 6 smp_setup_processor_id(); 7 8 /* 9 * Need to run as early as possible, to initialize the10 * lockde... 阅读全文

posted @ 2012-01-15 22:57 gdt-A20 阅读(1146) 评论(0) 推荐(0) 编辑