函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:shrink_huge_zero_page_scan

函数原型:static unsigned long shrink_huge_zero_page_scan(struct shrinker *shrink, struct shrink_control *sc)

返回类型:unsigned long

参数:

类型参数名称
struct shrinker *shrink
struct shrink_control *sc
146  如果atomic_cmpxchg( & huge_zero_refcount, 1, 0)恒等于1则
147  zero_page等于xchg( & huge_zero_page, NULL)
148  BUG_ON(zero_page == NULL)
149  __free_pages(zero_page, compound_order(zero_page))
150  返回:HPAGE_PMD_NR
153  返回:0