函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mempool.h Create Date:2022-07-27 06:46:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mempool_init_slab_pool

函数原型:static inline int mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc)

返回类型:int

参数:

类型参数名称
mempool_t *pool
intmin_nr
struct kmem_cache *kc
62  返回:mempool_init(pool, min_nr, A mempool_alloc_t and mempool_free_t that get the memory from* a slab cache that is passed in through pool_data.* Note: the slab cache may not have a ctor function., mempool_free_slab, (void * )kc)
调用者
名称描述
biovec_init_poolreate memory pools for biovec's in a bio_set.* use the global biovec slabs created for general use.
bioset_initset_init - Initialize a bio_set*@bs: pool to initialize*@pool_size: Number of bio and bio_vecs to cache in the mempool*@front_pad: Number of bytes to allocate in front of the returned bio*@flags: Flags to modify behavior, currently %BIOSET_NEED_BVECS* and
bioset_integrity_create