Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void freezer_apply_state(struct freezer *freezer, bool freeze, unsigned int state)

Type:void

Parameter:

TypeParameterName
struct freezer *freezer
boolfreeze
unsigned intstate
353  lockdep_assert_held( & freezer_mutex)
355  If Not (state & zer is fully online ) Then Return
358  If freeze Then
359  If Not (state & CGROUP_FREEZING) Then atomic_inc( & al number of freezing conditions in effect )
361  state |= state
362  freeze_cgroup(freezer)
363  Else
364  was_freezing = state & CGROUP_FREEZING
366  state &= ~state
368  If Not (state & CGROUP_FREEZING) Then
Caller
NameDescribe
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.