Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:If anyone needs this, please move it to xarray.c. We have no current* users outside the test suite because all current multislot users want* to use the advanced API.

Proto:static void *xa_store_order(struct xarray *xa, unsigned long index, unsigned order, void *entry, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
unsigned longindex
unsignedorder
void *entry
gfp_tgfp
71  XA_STATE_ORDER() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.*@order: Order of entry.* Declare and initialise an xa_state on the stack(xas, xa, index, order)
74  Do
75  xas_lock( & xas)
76  curr = xas_store() - Store this entry in the XArray
77  xas_unlock( & xas)
78  When xas_nomem() - Allocate memory if needed.*@xas: XArray operation state.*@gfp: Memory allocation flags.* If we need to add new nodes to the XArray, we try to allocate memory* with GFP_NOWAIT while holding the lock, which will usually succeed. cycle
80  Return curr
Caller
NameDescribe
check_xa_mark_1
check_xa_shrink
check_multi_store_1
check_multi_store_2
check_multi_store_3
check_multi_store
check_multi_find_1
check_multi_find_2
check_find_entry
check_accountCheck that the pointer / value / sibling entries are accounted the* way we expect them to be.
check_destroy