函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_freeze

函数原型:void cgroup_freeze(struct cgroup *cgrp, bool freeze)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
boolfreeze
264  bool applied = false
266  lockdep_assert_held( & cgroup_mutex is the master lock)
271  如果 Should the cgroup and its descendants be frozen. 恒等于freeze则返回
274  Should the cgroup and its descendants be frozen. 等于freeze
280  dsct等于PI: the cgroup that this css is attached to
282  如果cgroup_is_dead(dsct)则继续下一循环
285  如果freeze
286  Should the cgroup actually be frozen? 自加
290  如果 Should the cgroup actually be frozen? 大于1则继续下一循环
292  否则
293  Should the cgroup actually be frozen? 自减
297  如果 Should the cgroup actually be frozen? 大于0则继续下一循环
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  如果非applied
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.
调用者
名称描述
cgroup_freeze_write