Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:css_task_iter_advance

Proto:static void css_task_iter_advance(struct css_task_iter *it)

Type:void

Parameter:

TypeParameterName
struct css_task_iter *it
4458  lockdep_assert_held( & css_set_lock)
4459  repeat :
4460  If task_pos Then
4466  If flags & rnal flags Then flags &= ~rnal flags
4468  Else task_pos = next
4471  If task_pos == tasks_head Then task_pos = next
4473  If task_pos == mg_tasks_head Then task_pos = next
4475  If task_pos == dying_tasks_head Then 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.
4477  Else
4479  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.
4482  If Not task_pos Then Return
4485  task = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(task_pos, structtask_struct, cg_list)
4487  If flags & walk only threadgroup leaders Then
4489  If Not thread_group_leader(task) Then Go to repeat
4493  If Not atomic_read( & live) Then Go to repeat
4495  Else
4497  If Per task flags (PF_*), defined further below: & Getting shut down Then Go to repeat
Caller
NameDescribe
css_task_iter_startss_task_iter_start - initiate task iteration*@css: the css to walk tasks of*@flags: CSS_TASK_ITER_* flags*@it: the task iterator to use* Initiate iteration through the tasks of @css
css_task_iter_nextss_task_iter_next - return the next task for the iterator*@it: the task iterator being iterated* The "next" function for task iteration. @it should have been* initialized via css_task_iter_start(). Returns NULL when the iteration* reaches the end.