函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_on_slab_cache

函数原型:static bool set_on_slab_cache(struct kmem_cache *cachep, size_t size, slab_flags_t flags)

返回类型:bool

参数:

类型参数名称
struct kmem_cache *cachep
size_tsize
slab_flags_tflags
1926  num等于0
1928  left等于alculate_slab_order - calculate size (page order) of slabs*@cachep: pointer to the cache that is being created*@size: size of objects to be created in this cache.*@flags: slab allocation flags* Also calculates the number of objects per slab.
1929  如果非num则返回:false
1932  colour等于leftcolour_off
1934  返回:true
调用者
名称描述
__kmem_cache_create__kmem_cache_create - Create a cache.*@cachep: cache management descriptor*@flags: SLAB flags* Returns a ptr to the cache on success, NULL on failure.* Cannot be called within a int, but can be interrupted.