Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parent_hugetlb_cgroup

Proto:static inline struct hugetlb_cgroup *parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg)

Type:struct hugetlb_cgroup

Parameter:

TypeParameterName
struct hugetlb_cgroup *h_cg
56  Return hugetlb_cgroup_from_css(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.)
Caller
NameDescribe
hugetlb_cgroup_move_parentShould be called with hugetlb_lock held.* Since we are holding hugetlb_lock, pages cannot get moved from* active list or uncharged from the cgroup, So no need to get* page reference and test for page active here. This function* cannot fail.