函数逻辑报告

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_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.

函数原型:struct task_struct *css_task_iter_next(struct css_task_iter *it)

返回类型:struct task_struct

参数:

类型参数名称
struct css_task_iter *it
4545  如果cur_task
4546  put_task_struct(cur_task)
4547  cur_task = NULL
4550  spin_lock_irq( & css_set_lock)
4553  如果flags按位与rnal flags css_task_iter_advance(it)
4556  如果task_pos
4557  cur_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)
4559  get_task_struct(cur_task)
4560  css_task_iter_advance(it)
4563  spin_unlock_irq( & css_set_lock)
4565  返回:cur_task
调用者
名称描述
cgroup_procs_next
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