Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:45:08
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Slab list should be fixed up by fixup_slab_list() for existing slab* or cache_grow_end() for new slab

Proto:static __always_inline int alloc_block(struct kmem_cache *cachep, struct array_cache *ac, struct page *page, int batchcount)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *cachep
struct array_cache *ac
struct page *page
intbatchcount
2941  BUG_ON( SLAB >= num)
2943  When SLAB < num && batchcount-- cycle
2944  STATS_INC_ALLOCED(cachep)
2945  STATS_INC_ACTIVE(cachep)
2946  STATS_SET_HIGH(cachep)
2948  Must have this definition in here for the proper* alignment of array_cache. Also simplifies accessing* the entries.[avail++] = slab_get_obj(cachep, page)
2951  Return batchcount
Caller
NameDescribe
cache_alloc_refill