函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_taskset_first - reset taskset and return the first task*@tset: taskset of interest*@dst_cssp: output variable for the destination css*@tset iteration is initialized and the first task is returned.

函数原型:struct task_struct *cgroup_taskset_first(struct cgroup_taskset *tset, struct cgroup_subsys_state **dst_cssp)

返回类型:struct task_struct

参数:

类型参数名称
struct cgroup_taskset *tset
struct cgroup_subsys_state **dst_cssp
2329  cur_cset等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(Fields for cgroup_taskset_*() iteration.* Before migration is committed, the target migration tasks are on* ->mg_tasks of the csets on ->src_csets. After, on ->mg_tasks of* the csets on ->dst_csets. ->csets point to either ->src_csets, structcss_set, mg_node)
2330  cur_task = NULL
2332  返回:group_taskset_next - iterate to the next task in taskset*@tset: taskset of interest*@dst_cssp: output variable for the destination css* Return the next task in @tset. Iteration must have been initialized* with cgroup_taskset_first().
调用者
名称描述
cpuset_can_attachCalled by cgroups to determine if a cpuset is usable; cpuset_mutex held
cpuset_cancel_attach
cpuset_attach