Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We don't allow rdtgroup directories to be created anywhere* except the root directory

Proto:static struct rdtgroup *kernfs_to_rdtgroup(struct kernfs_node *kn)

Type:struct rdtgroup

Parameter:

TypeParameterName
struct kernfs_node *kn
1867  If kernfs_type(kn) == KERNFS_DIR Then
1874  If kn == Kernel fs node for "info" directory under root || * Use kernfs_get_parent() and kernfs_name/path() instead of * accessing the following two fields directly. If the node is * never moved to a different parent, it is safe to access the * parent directly. == Kernel fs node for "info" directory under root Then Return NULL
1876  Else Return priv
1878  Else
1879  Return priv
Caller
NameDescribe
rdtgroup_kn_lock_live
rdtgroup_kn_unlock