Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:css_task_iter_next_css_set

Proto:static struct css_set *css_task_iter_next_css_set(struct css_task_iter *it)

Type:struct css_set

Parameter:

TypeParameterName
struct css_task_iter *it
4341  lockdep_assert_held( & css_set_lock)
4344  If tcset_pos Then
4345  l = next
4347  If l != tcset_head Then
4348  tcset_pos = l
4353  tcset_pos = NULL
4357  l = cset_pos
4358  l = next
4359  If l == cset_head Then
4360  cset_pos = NULL
4361  Return NULL
4364  If ss Then
4365  cset = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(l, structcss_set, e_cset_node[ the following two fields are initialized automtically during boot ])
4366  Else
4367  link = 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.(l, structcgrp_cset_link, cset_link)
4368  cset = cset
4371  cset_pos = l
4374  If flags & walk all threaded css_sets in the domain Then
4375  If cur_dcset Then put_css_set_locked(cur_dcset)
4377  cur_dcset = cset
4378  ed get/put for css_set objects
4380  tcset_head = all threaded csets whose ->dom_cset points to this cset
4381  tcset_pos = all threaded csets whose ->dom_cset points to this cset
4384  Return cset
Caller
NameDescribe
css_task_iter_advance_css_setss_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.