函数逻辑报告 |
Source Code:lib\xarray.c |
Create Date:2022-07-27 07:10:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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.
函数原型:static bool __xas_nomem(struct xa_state *xas, gfp_t gfp)__must_hold(xas->xa->xa_lock)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct xa_state * | xas | |
gfp_t | gfp |
329 | 返回:false |
331 | 如果private: The rest of the data structure is not to be used directly. 按位与XA_FLAGS_ACCOUNT则gfp或等于__GFP_ACCOUNT |
333 | 如果gfpflags_allow_blocking(gfp)则 |
334 | xas_unlock_type(xas, lock_type) |
336 | xas_lock_type(xas, lock_type) |
337 | 否则 |
340 | 如果非xa_alloc则返回:false |
342 | XA_NODE_BUG_ON(xa_alloc, !链表为空) |
343 | xa_node等于XAS_RESTART |
344 | 返回:true |
名称 | 描述 |
---|---|
__xa_store | __xa_store() - Store this entry in the XArray |
__xa_cmpxchg | __xa_cmpxchg() - Store this entry in the XArray |
__xa_insert | __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 |
__xa_alloc | |
__xa_alloc | __xa_alloc() - Find somewhere to store this entry in the XArray |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |