Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:shrink_huge_zero_page_scan

Proto:static unsigned long shrink_huge_zero_page_scan(struct shrinker *shrink, struct shrink_control *sc)

Type:unsigned long

Parameter:

TypeParameterName
struct shrinker *shrink
struct shrink_control *sc
146  If atomic_cmpxchg( & huge_zero_refcount, 1, 0) == 1 Then
147  zero_page = xchg( & huge_zero_page, NULL)
148  BUG_ON(zero_page == NULL)
149  __free_pages(zero_page, compound_order(zero_page))
150  Return HPAGE_PMD_NR
153  Return 0