函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zs_shrinker_scan

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

返回类型:unsigned long

参数:

类型参数名称
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  返回:如果pages_freedpages_freed否则SHRINK_STOP