函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parent_hugetlb_cgroup

函数原型:static inline struct hugetlb_cgroup *parent_hugetlb_cgroup(struct hugetlb_cgroup *h_cg)

返回类型:struct hugetlb_cgroup

参数:

类型参数名称
struct hugetlb_cgroup *h_cg
56  返回:hugetlb_cgroup_from_css(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.)
调用者
名称描述
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.