函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ss_task_iter_end - finish task iteration*@it: the task iterator to finish* Finish task iteration started by css_task_iter_start().

函数原型:void css_task_iter_end(struct css_task_iter *it)

返回类型:void

参数:

类型参数名称
struct css_task_iter *it
4576  如果cur_cset
4577  spin_lock_irq( & css_set_lock)
4578  删除链表项
4579  put_css_set_locked(cur_cset)
4580  spin_unlock_irq( & css_set_lock)
4583  如果cur_dcsetput_css_set(cur_dcset)
4586  如果cur_taskput_task_struct(cur_task)
调用者
名称描述
cgroup_procs_release
__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