函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:If CPU and/or memory hotplug handlers, below, unplug any CPUs* or memory nodes, we need to walk over the cpuset hierarchy,* removing that CPU or node from all cpusets. If this removes the* last CPU or node from a cpuset, then move the tasks in the empty

函数原型:static void remove_tasks_in_empty_cpuset(struct cpuset *cs)

返回类型:void

参数:

类型参数名称
struct cpuset *cs
2927  parent等于parent_cs(cs)
2928 pumask_empty - *srcp == 0*@srcp: the cpumask to that all cpus < nr_cpu_ids are clear.nodes_empty(mems_allowed)循环
2930  parent等于parent_cs(parent)
2932  如果group_trasnsfer_tasks - move tasks from one cgroup to another*@to: cgroup to which the tasks will be moved*@from: cgroup in which the tasks currently reside* Locking rules between cgroup_post_fork() and the migration path* guarantee that, if a task is
2933  打印错误信息("cpuset: failed to transfer tasks out of empty cpuset ")
2934  pr_cont_cgroup_name(PI: the cgroup that this css is attached to )
2935  打印标准信息("\n")
调用者
名称描述
hotplug_update_tasks_legacy