Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_rm_file

Proto:static void cgroup_rm_file(struct cgroup *cgrp, const struct cftype *cft)

Type:void

Parameter:

TypeParameterName
struct cgroup *cgrp
const struct cftype *cft
1627  lockdep_assert_held( & cgroup_mutex is the master lock)
1629  If 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. Then
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 = css + 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.
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))
Caller
NameDescribe
cgroup_addrm_files