函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:19:01
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Slab list should be fixed up by fixup_slab_list() for existing slab* or cache_grow_end() for new slab

函数原型:static __always_inline int alloc_block(struct kmem_cache *cachep, struct array_cache *ac, struct page *page, int batchcount)

返回类型:int

参数:

类型参数名称
struct kmem_cache *cachep
struct array_cache *ac
struct page *page
intbatchcount
2941  BUG_ON( SLAB >= num)
2943  SLAB 小于numbatchcount自减循环
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  返回:batchcount
调用者
名称描述
cache_alloc_refill