Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempool.c Create Date:2022-07-28 14:04:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mempool_exit - exit a mempool initialized with mempool_init()*@pool: pointer to the memory pool which was initialized with* mempool_init().* Free all reserved elements in @pool and @pool itself. This function* only sleeps if the free_fn() function sleeps.

Proto:void mempool_exit(mempool_t *pool)

Type:void

Parameter:

TypeParameterName
mempool_t *pool
153  When Current nr of elements at *elements cycle
154  element = remove_element(pool)
155  free(element, pool_data)
157  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
158  elements = NULL
Caller
NameDescribe
mempool_destroymempool_destroy - deallocate a memory pool*@pool: pointer to the memory pool which was allocated via* mempool_create().* Free all reserved elements in @pool and @pool itself. This function* only sleeps if the free_fn() function sleeps.
mempool_init_node
bioset_exitset_exit - exit a bioset initialized with bioset_init()* May be called on a zeroed but uninitialized bioset (i.e. allocated with* kzalloc()).
bioset_integrity_create
bioset_integrity_free