Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mempool.h Create Date:2022-07-28 05:45:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mempool_init_slab_pool

Proto:static inline int mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc)

Type:int

Parameter:

TypeParameterName
mempool_t *pool
intmin_nr
struct kmem_cache *kc
62  Return 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)
Caller
NameDescribe
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