慢慢欣赏linux exec加载执行程序

int do_execve(char * filename,
	char __user *__user *argv,
	char __user *__user *envp,
	struct pt_regs * regs)
	sched_exec();
		=>void sched_exec(void)
			if (migrate_task(p, dest_cpu, &req)) 
				struct task_struct *mt = rq->migration_thread;//是个实时线程
				wake_up_process(mt);
					=>int wake_up_process(struct task_struct *p)
						return try_to_wake_up(p, TASK_ALL, 0);
							=>int try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
								cpu = select_task_rq(p, SD_BALANCE_WAKE, wake_flags);
									=>int select_task_rq(struct task_struct *p, int sd_flags, int wake_flags)
										int cpu = p->sched_class->select_task_rq(p, sd_flags, wake_flags);//.select_task_rq		= select_task_rq_rt,
											int select_task_rq_rt(struct task_struct *p, int sd_flag, int flags)
										
											
			

linux内核线程migration_thread和kthreadd的创建
http://blog.chinaunix.net/uid-9059-id-3451506.html    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值