函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zer_apply_state - apply state change to a single cgroup_freezer*@freezer: freezer to apply state change to*@freeze: whether to freeze or unfreeze*@state: CGROUP_FREEZING_* flag to set or clear* Set or clear @state on @cgroup according to @freeze, and

函数原型:static void freezer_apply_state(struct freezer *freezer, bool freeze, unsigned int state)

返回类型:void

参数:

类型参数名称
struct freezer *freezer
boolfreeze
unsigned intstate
353  lockdep_assert_held( & freezer_mutex)
355  如果非state按位与zer is fully online 的值则返回
358  如果freeze
359  如果非state按位与CGROUP_FREEZING的值则atomic_inc( & al number of freezing conditions in effect )
361  state或等于state
362  freeze_cgroup(freezer)
363  否则
364  was_freezing等于state按位与CGROUP_FREEZING
366  state与等于state的反
368  如果非state按位与CGROUP_FREEZING的值则
调用者
名称描述
freezer_change_statezer_change_state - change the freezing state of a cgroup_freezer*@freezer: freezer of interest*@freeze: whether to freeze or thaw* Freeze or thaw @freezer according to @freeze. The operations are* recursive - all descendants of @freezer will be affected.