Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_freeze

Proto:void cgroup_freeze(struct cgroup *cgrp, bool freeze)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
boolfreeze
264  bool applied = false
266  lockdep_assert_held( & cgroup_mutex is the master lock)
271  If Should the cgroup and its descendants be frozen. == freeze Then Return
274  Should the cgroup and its descendants be frozen. = freeze
280  dsct = PI: the cgroup that this css is attached to
282  If cgroup_is_dead(dsct) Then Continue
285  If freeze Then
286  Should the cgroup actually be frozen? ++
290  If Should the cgroup actually be frozen? > 1 Then Continue
292  Else
293  Should the cgroup actually be frozen? --
297  If Should the cgroup actually be frozen? > 0 Then Continue
300  WARN_ON_ONCE( Should the cgroup actually be frozen? < 0)
306  Freeze or unfreeze all tasks in the given cgroup.
307  applied = true
318  If Not applied Then
319  cgroup_path() takes a spin lock(notify_frozen, cgrp, st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from)
321  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.
Caller
NameDescribe
cgroup_freeze_write