函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Adjust the task state (freeze or unfreeze) and revisit the state of* source and destination cgroups.

函数原型:void cgroup_freezer_migrate_task(struct task_struct *task, struct cgroup *src, struct cgroup *dst)

返回类型:void

参数:

类型参数名称
struct task_struct *task
struct cgroup *src
struct cgroup *dst
225  lockdep_assert_held( & css_set_lock)
230  如果任务标志按位与I am a kernel thread 则返回
237  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from且非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from且非 task is frozen/stopped (used by the cgroup freezer) 则返回
247  如果 task is frozen/stopped (used by the cgroup freezer)
248  Increment cgroup's nr_frozen_tasks.
249  Decrement cgroup's nr_frozen_tasks.
251  Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
252  Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
257  Freeze or unfreeze the task by setting or clearing the JOBCTL_TRAP_FREEZE* jobctl bit.
调用者
名称描述
cgroup_migrate_executegroup_taskset_migrate - migrate a taskset*@mgctx: migration context* Migrate tasks in @mgctx as setup by migration preparation functions.* This function fails iff one of the ->can_attach callbacks fails and