函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zbud_zpool_shrink

函数原型:static int zbud_zpool_shrink(void *pool, unsigned int pages, unsigned int *reclaimed)

返回类型:int

参数:

类型参数名称
void *pool
unsigned intpages
unsigned int *reclaimed
173  total等于0
174  ret等于负EINVAL
176 total小于pages循环
177  ret等于zbud_reclaim_page() - evicts allocations from a pool page and frees it*@pool: pool from which a page will attempt to be evicted*@retries: number of pages on the LRU list for which eviction will* be attempted before failing* zbud reclaim is different from
178  如果ret小于0则退出
180  total自加
183  如果reclaimedreclaimed等于total
186  返回:ret