Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_cgroup_init

Proto:static void hugetlb_cgroup_init(struct hugetlb_cgroup *h_cgroup, struct hugetlb_cgroup *parent_h_cgroup)

Type:void

Parameter:

TypeParameterName
struct hugetlb_cgroup *h_cgroup
struct hugetlb_cgroup *parent_h_cgroup
75  When idx < HUGE_MAX_HSTATE cycle
76  counter = * the counter to account for hugepages from hugetlb.[idx]
77  struct page_counter * parent = NULL
81  If parent_h_cgroup Then parent = * the counter to account for hugepages from hugetlb.[idx]
83  page_counter_init(counter, parent)
85  limit = und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(PAGE_COUNTER_MAX, 1 << huge_page_order( & hstates[idx]))
87  ret = page_counter_set_max - set the maximum number of pages allowed*@counter: counter*@nr_pages: limit to set* Returns 0 on success, -EBUSY if the current number of pages on the* counter already exceeds the specified limit.
88  VM_BUG_ON(ret)
Caller
NameDescribe
hugetlb_cgroup_css_alloc