Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Should be called with hugetlb_lock held

Proto:void hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, struct page *page)

Type:void

Parameter:

TypeParameterName
intidx
unsigned longnr_pages
struct page *page
233  If hugetlb_cgroup_disabled() Then Return
235  lockdep_assert_held( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
236  h_cg = hugetlb_cgroup_from_page(page)
237  If Value for the false possibility is greater at compile time(!h_cg) Then Return
239  set_hugetlb_cgroup(page, NULL)
240  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
241  Return
Caller
NameDescribe
__free_huge_page