Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:da_destroy() - Free all IDs.*@ida: IDA handle.* Calling this function frees all IDs and releases all resources used* by an IDA. When this call returns, the IDA is empty and can be reused* or freed. If the IDA is already empty, there is no need to call this

Proto:void ida_destroy(struct ida *ida)

Type:void

Parameter:

TypeParameterName
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  If Not 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. Then kfree(bitmap)
546  xas_store() - Store this entry in the XArray
548  xas_unlock_irqrestore( & xas, flags)
Caller
NameDescribe
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.