函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__xa_insert() - Store this entry in the XArray if no entry is present.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* Inserting a NULL entry will store a reserved entry (like xa_reserve())* if no entry is present

函数原型:int __xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct xarray *xa
unsigned longindex
void *entry
gfp_tgfp
1485  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, index)
1488  如果WARN_ON_ONCE(xa_is_advanced() - Is the entry only permitted for the advanced API?*@entry: Entry to be stored in the XArray.* Return: %true if the entry cannot be stored by the normal API.)则返回:负EINVAL
1490  如果非entryentry等于XA_ZERO_ENTRY
1493  循环
1494  curr等于xas_load() - Load an entry from the XArray (advanced).*@xas: XArray operation state.* Usually walks the @xas to the appropriate state to load the entry* stored at xa_index. However, it will do nothing and return %NULL if*@xas is in an error state
1495  如果非curr
1499  否则
1502 __xas_nomem() - Drop locks and allocate memory if needed.*@xas: XArray operation state.*@gfp: Memory allocation flags.* Internal variant of xas_nomem().* Return: true if memory was needed, and was successfully allocated.循环
1504  返回:xas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has.