Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cache_init_objs

Proto:static void cache_init_objs(struct kmem_cache *cachep, struct page *page)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
struct page *page
2541  cache_init_objs_debug(cachep, page)
2544  shuffled = shuffle_freelist(cachep, page)
2546  If Not shuffled && OBJFREELIST_SLAB(cachep) Then
2547  first free object = index_to_obj(cachep, page, num - 1) + obj_offset(cachep)
2551  When i < num cycle
2552  objp = index_to_obj(cachep, page, i)
2553  objp = kasan_init_slab_obj(cachep, objp)
2556  If DEBUG == 0 && ctor Then
2558  ctor(objp)
2562  If Not shuffled Then set_free_obj(page, i, i)
Caller
NameDescribe
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.