Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\genalloc.c Create Date:2022-07-28 06:56:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gen_pool_destroy - destroy a special memory pool*@pool: pool to destroy* Destroy the specified special memory pool. Verifies that there are no* outstanding allocations.

Proto:void gen_pool_destroy(struct gen_pool *pool)

Type:void

Parameter:

TypeParameterName
struct gen_pool *pool
244  order = minimum allocation order
248  chunk = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(_chunk, structgen_pool_chunk, next_chunk)
249  deletes entry from list
251  end_bit = chunk_size(chunk) >> order
252  bit = Find the next set bit in a memory region.
253  BUG_ON(bit < end_bit)
255  vfree(chunk)
257  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
258  kfree(pool)
Caller
NameDescribe
devm_gen_pool_release