函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-27 12:12:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ss_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

函数原型:void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags, struct css_task_iter *it)

返回类型:void

参数:

类型参数名称
struct cgroup_subsys_state *css
unsigned intflags
struct css_task_iter *it
4516  memset(it, 0, it的长度)
4518  spin_lock_irq( & css_set_lock)
4520  ss等于PI: the cgroup subsystem that this css is attached to
4521  flags等于flags
4523  如果sscset_pos等于* On the default hierarchy, a css_set for a cgroup with some * susbsys disabled will point to css's which are associated with * the closest ancestor which has the subsys enabled. The * following lists all css_sets which point to this cgroup's css * for the[ the following two fields are initialized automtically during boot ]
4525  否则cset_pos等于* List of cgrp_cset_links pointing at css_sets with tasks in this * cgroup. Protected by css_set_lock.
4528  cset_head等于cset_pos
4530  css_task_iter_advance(it)
4532  spin_unlock_irq( & css_set_lock)
调用者
名称描述
__cgroup_procs_start
cgroup_transfer_tasksgroup_trasnsfer_tasks - move tasks from one cgroup to another*@to: cgroup to which the tasks will be moved*@from: cgroup in which the tasks currently reside* Locking rules between cgroup_post_fork() and the migration path* guarantee that, if a task is
pidlist_array_loadLoad a cgroup's pidarray with either procs' tgids or tasks' pids
cgroupstats_buildgroupstats_build - build and fill cgroupstats*@stats: cgroupstats to fill information into*@dentry: A dentry entry belonging to the cgroup for which stats have* been requested.* Build and fill cgroupstats so that taskstats can export it to user* space.
cgroup_do_freezeFreeze or unfreeze all tasks in the given cgroup.
update_if_frozenpdate_if_frozen - update whether a cgroup finished freezing*@css: css of interest* Once FREEZING is initiated, transition to FROZEN is lazily updated by* calling this function
freeze_cgroup
unfreeze_cgroup
update_tasks_cpumaskpdate_tasks_cpumask - Update the cpumasks of tasks in the cpuset.*@cs: the cpuset in which each task's cpus_allowed mask needs to be changed* Iterate through each task of @cs updating its cpus_allowed to the* effective cpuset's
update_tasks_nodemaskpdate_tasks_nodemask - Update the nodemasks of tasks in the cpuset.*@cs: the cpuset in which each task's mems_allowed mask needs to be changed* Iterate through each task of @cs updating its mems_allowed to the* effective cpuset's
update_tasks_flagspdate_tasks_flags - update the spread flags of tasks in the cpuset
mem_cgroup_scan_tasksmem_cgroup_scan_tasks - iterate over tasks of a memory cgroup hierarchy*@memcg: hierarchy root*@fn: function to call for each task*@arg: argument passed to @fn* This function iterates over tasks attached to @memcg or to any of its