函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.

函数原型:void cgroup_update_frozen(struct cgroup *cgrp)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
56  lockdep_assert_held( & css_set_lock)
63  frozen等于st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from* Number of tasks, which are counted as frozen: * frozen, SIGSTOPped, and PTRACEd.恒等于__cgroup_task_count - count the number of tasks in a cgroup. The caller* is responsible for taking the css_set_lock.*@cgrp: the cgroup in question
66  如果frozen
68  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回
71  设置内存位
72  否则
74  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回
77  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
79  group_file_notify - generate a file modified event for a cgroup_file*@cfile: target cgroup_file*@cfile must have been obtained by setting cftype->file_offset.
80  cgroup_path() takes a spin lock(notify_frozen, cgrp, frozen)
83  Propagate the cgroup frozen state upwards by the cgroup tree.
调用者
名称描述
cgroup_enter_frozenEnter frozen/stopped state, if not yet there. Update cgroup's counters,* and revisit the state of the cgroup, if necessary.
cgroup_leave_frozenConditionally leave frozen/stopped state
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.
cgroup_exitgroup_exit - detach cgroup from exiting task*@tsk: pointer to task_struct of exiting process* Description: Detach cgroup from @tsk.