Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ss_task_iter_advance_css_set - advance a task itererator to the next css_set*@it: the iterator to advance* Advance @it to the next css_set to walk.

Proto:static void css_task_iter_advance_css_set(struct css_task_iter *it)

Type:void

Parameter:

TypeParameterName
struct css_task_iter *it
4397  lockdep_assert_held( & css_set_lock)
4400  Do
4401  cset = css_task_iter_next_css_set(it)
4402  If Not cset Then
4403  task_pos = NULL
4404  Return
4406  When Not ss_set_populated - does a css_set contain any tasks?*@cset: target css_set* css_set_populated() should be the same as !!cset->nr_tasks at steady* state && list_empty - tests whether a list is empty*@head: the list to test. cycle
4408  If Not list_empty - tests whether a list is empty*@head: the list to test. Then task_pos = next
4410  Else if Not list_empty - tests whether a list is empty*@head: the list to test. Then task_pos = next
4412  Else task_pos = next
4415  tasks_head = Lists running through all tasks using this cgroup group.* mg_tasks lists tasks which belong to this cset but are in the* process of being migrated out or in. Protected by* css_set_rwsem, but, during migration, once tasks are moved to
4416  mg_tasks_head = mg_tasks
4417  dying_tasks_head = dying_tasks
4434  If cur_cset Then
4435  deletes entry from list
4436  put_css_set_locked(cur_cset)
4438  ed get/put for css_set objects
4439  cur_cset = cset
4440  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
Caller
NameDescribe
css_task_iter_advance