函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\sched.h Create Date:2022-07-27 06:58:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__set_task_cpu

函数原型:static inline void __set_task_cpu(struct task_struct *p, unsigned int cpu)

返回类型:void

参数:

类型参数名称
struct task_struct *p
unsigned intcpu
1526  set_task_rq(p, cpu)
调用者
名称描述
sched_fork调度进程
init_idle_idle - set up an idle thread for a given CPU*@idle: task in question*@cpu: CPU the idle task belongs to* NOTE: this function does not set the idle thread's NEED_RESCHED* flag, to make booting more robust.