Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_cgroup_css_alloc

Proto:static struct cgroup_subsys_state *hugetlb_cgroup_css_alloc(struct cgroup_subsys_state *parent_css)

Type:struct cgroup_subsys_state

Parameter:

TypeParameterName
struct cgroup_subsys_state *parent_css
95  parent_h_cgroup = hugetlb_cgroup_from_css(parent_css)
98  h_cgroup = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
99  If Not h_cgroup Then Return ERR_PTR( - ENOMEM)
102  If Not parent_h_cgroup Then root_h_cgroup = h_cgroup
105  hugetlb_cgroup_init(h_cgroup, parent_h_cgroup)
106  Return css