Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:struct task_struct *cgroup_taskset_first(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
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  Return 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().
Caller
NameDescribe
cpuset_can_attachCalled by cgroups to determine if a cpuset is usable; cpuset_mutex held
cpuset_cancel_attach
cpuset_attach