函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:释放所有缓存层内IDA树

函数原型:void ida_destroy(struct ida *ida)

返回类型:void

参数:

类型参数名称
struct ida *ida
538  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, & xa, 0)
542  xas_lock_irqsave( & xas, flags)
544  如果非xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer.释放内存
546  xas_store() - Store this entry in the XArray
548  xas_unlock_irqrestore( & xas, flags)
调用者
名称描述
ida_check_allocStraightforward checks that allocating and freeing IDs work.
ida_check_destroy_1Destroy an IDA with a single entry at @base
ida_check_destroyCheck that ida_destroy and ida_is_empty work
ida_check_leafCheck what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.
ida_check_maxCheck allocations up to and slightly above the maximum allowed (2^31-1) ID.* Allocating up to 2^31-1 should succeed, and then allocating the next one* should fail.
objagg_destroybjagg_destroy - destroys a new objagg instance*@objagg: objagg instance* Note: all locking must be provided by the caller.
rcu_free_pool
devpts_kill_sb