Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:struct task_struct *css_task_iter_next(struct css_task_iter *it)

Type:struct task_struct

Parameter:

TypeParameterName
struct css_task_iter *it
4545  If cur_task Then
4546  put_task_struct(cur_task)
4547  cur_task = NULL
4550  spin_lock_irq( & css_set_lock)
4553  If flags & rnal flags Then css_task_iter_advance(it)
4556  If task_pos Then
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  Return cur_task
Caller
NameDescribe
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