函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cache_init_objs

函数原型:static void cache_init_objs(struct kmem_cache *cachep, struct page *page)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct page *page
2541  cache_init_objs_debug(cachep, page)
2544  shuffled等于shuffle_freelist(cachep, page)
2546  如果非shuffledOBJFREELIST_SLAB(cachep)则
2547  first free object 等于index_to_obj(cachep, page, num - 1)加obj_offset(cachep)
2551 i小于num循环
2552  objp等于index_to_obj(cachep, page, i)
2553  objp等于kasan_init_slab_obj(cachep, objp)
2556  如果DEBUG恒等于0且ctor
2558  ctor(objp)
2562  如果非shuffledset_free_obj(page, i, i)
调用者
名称描述
cache_grow_beginGrow (by 1) the number of slabs within a cache. This is called by* kmem_cache_alloc() when there are no active objs left in a cache.