函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_rm_file

函数原型:static void cgroup_rm_file(struct cgroup *cgrp, const struct cftype *cft)

返回类型:void

参数:

类型参数名称
struct cgroup *cgrp
const struct cftype *cft
1627  lockdep_assert_held( & cgroup_mutex is the master lock)
1629  如果If non-zero, should contain the offset from the start of css to* a struct cgroup_file field. cgroup will record the handle of* the created file into it. The recorded handle can be used as* long as the containing css remains accessible.
1630  css等于group_css - obtain a cgroup's css for the specified subsystem*@cgrp: the cgroup of interest*@ss: the subsystem of interest (%NULL returns @cgrp->self)* Return @cgrp's css (cgroup_subsys_state) associated with @ss
1631  cfile等于cssIf non-zero, should contain the offset from the start of css to* a struct cgroup_file field. cgroup will record the handle of* the created file into it. The recorded handle can be used as* long as the containing css remains accessible.
1633  spin_lock_irq( & Protects cgroup_file->kn for !self csses. It synchronizes notifications* against file removal/re-creation across css hiding.)
1634  do not access any fields from outside cgroup core = NULL
1635  spin_unlock_irq( & Protects cgroup_file->kn for !self csses. It synchronizes notifications* against file removal/re-creation across css hiding.)
1637  del_timer_sync( & notify_timer)
1640  kernfs_remove_by_name( cgroup kernfs entry , cgroup_file_name(cgrp, cft, name))
调用者
名称描述
cgroup_addrm_files