函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Freeze or unfreeze the task by setting or clearing the JOBCTL_TRAP_FREEZE* jobctl bit.

函数原型:static void cgroup_freeze_task(struct task_struct *task, bool freeze)

返回类型:void

参数:

类型参数名称
struct task_struct *task
boolfreeze
160  如果非lock_task_sighand(task, & flags)则返回
163  如果freeze
164  JOBCTL_*, siglock protected: 或等于JOBCTL_TRAP_FREEZE
165  signal_wake_up(task, false)
166  否则
167  JOBCTL_*, siglock protected: 与等于JOBCTL_TRAP_FREEZE的反
168  唤醒中断线程
171  unlock_task_sighand(task, & flags)
调用者
名称描述
cgroup_do_freezeFreeze or unfreeze all tasks in the given cgroup.
cgroup_freezer_migrate_taskAdjust the task state (freeze or unfreeze) and revisit the state of* source and destination cgroups.