Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xa_store_range() - Store this entry at a range of indices in the XArray

Proto:void *xa_store_range(struct xarray *xa, unsigned long first, unsigned long last, void *entry, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
unsigned longfirst
unsigned longlast
void *entry
gfp_tgfp
1561  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)
1563  If WARN_ON_ONCE(xa_is_internal() - Is the entry an internal entry?*@entry: XArray entry.* Context: Any context.* Return: %true if the entry is an internal entry.) Then Return We encode errnos in the xas->xa_node. If an error has happened, we need to* drop the lock to fix it, and once we've done so the xa_state is invalid.( - EINVAL)
1565  If last < first Then Return We encode errnos in the xas->xa_node. If an error has happened, we need to* drop the lock to fix it, and once we've done so the xa_state is invalid.( - EINVAL)
1568  Do
1569  xas_lock( & xas)
1570  If entry Then
1571  order = BITS_PER_LONG
1579  Do
1580  xas_set_range( & xas, first, last)
1585  When first <= last cycle
1586  unlock :
1587  xas_unlock( & xas)
1588  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
1590  Return xas_result( & xas, NULL)
Caller
NameDescribe
__check_store_range