Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:08:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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().

Proto:struct task_struct *cgroup_taskset_next(struct cgroup_taskset *tset, struct cgroup_subsys_state **dst_cssp)

Type:struct task_struct

Parameter:

TypeParameterName
struct cgroup_taskset *tset
struct cgroup_subsys_state **dst_cssp
2346  cset = cur_cset
2347  task = cur_task
2349  When mg_node != 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 cycle
2350  If Not task Then task = 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.( & mg_tasks, structtask_struct, cg_list)
2353  Else task = list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(task, cg_list)
2357  cur_cset = cset
2358  cur_task = task
2371  Return task
2374  cset = list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(cset, mg_node)
2375  task = NULL
2378  Return NULL
Caller
NameDescribe
cgroup_taskset_firstgroup_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.