Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zbud_zpool_shrink

Proto:static int zbud_zpool_shrink(void *pool, unsigned int pages, unsigned int *reclaimed)

Type:int

Parameter:

TypeParameterName
void *pool
unsigned intpages
unsigned int *reclaimed
173  total = 0
174  ret = -EINVAL
176  When total < pages cycle
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  If ret < 0 Then Break
180  total++
183  If reclaimed Then reclaimed = total
186  Return ret