Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zs_shrinker_scan

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

Type:unsigned long

Parameter:

TypeParameterName
struct shrinker *shrinker
struct shrink_control *sc
2340  pool = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(shrinker, structzs_pool, shrinker)
2343  pages_freed = How many pages were migrated (freed)
2349  pages_freed = zs_compact(pool) - pages_freed
2351  Return If pages_freed Then pages_freed Else SHRINK_STOP