函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\genalloc.c Create Date:2022-07-27 07:54:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:销毁内存池

函数原型:void gen_pool_destroy(struct gen_pool *pool)

返回类型:void

参数:

类型参数名称
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  删除链表项
251  end_bit等于chunk_size(chunk)右移order
252  bit等于在内存区域中找到下一个设置位
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)
调用者
名称描述
devm_gen_pool_release
mce_gen_pool_create