Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_min_partial

Proto:static void set_min_partial(struct kmem_cache *s, unsigned long min)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
unsigned longmin
3449  If min < Mininum number of partial slabs. These will be left on the partial* lists even if they are empty. kmem_cache_shrink may reclaim them. Then min = Mininum number of partial slabs. These will be left on the partial* lists even if they are empty. kmem_cache_shrink may reclaim them.
3451  Else if min > Maximum number of desirable partial slabs.* The existence of more partial slabs makes kmem_cache_shrink* sort the partial list by the number of objects in use. Then min = Maximum number of desirable partial slabs.* The existence of more partial slabs makes kmem_cache_shrink* sort the partial list by the number of objects in use.
3453  min_partial = min
Caller
NameDescribe
kmem_cache_open