函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Should be called with hugetlb_lock held

函数原型:void hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages, struct page *page)

返回类型:void

参数:

类型参数名称
intidx
unsigned longnr_pages
struct page *page
233  如果hugetlb_cgroup_disabled()则返回
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  如果此条件成立可能性小(为编译器优化)(!h_cg)则返回
239  set_hugetlb_cgroup(page, NULL)
240  page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge
241  返回
调用者
名称描述
__free_huge_page