函数逻辑报告 |
Source Code:lib\xarray.c |
Create Date:2022-07-27 07:10:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:xas_alloc
函数原型:static void *xas_alloc(struct xa_state *xas, unsigned int shift)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct xa_state * | xas | |
unsigned int | shift |
363 | 如果node则 |
364 | xa_alloc = NULL |
365 | 否则 |
368 | 如果private: The rest of the data structure is not to be used directly. 按位与XA_FLAGS_ACCOUNT则gfp或等于__GFP_ACCOUNT |
372 | 如果非node则 |
378 | 如果parent则 |
380 | Total entry count 自加 |
382 | xas_update(xas, parent) |
384 | XA_NODE_BUG_ON(node, shift > BITS_PER_LONG) |
385 | XA_NODE_BUG_ON(node, !链表为空) |
387 | Total entry count 等于0 |
388 | Value entry count 等于0 |
390 | The array we belong to 等于xa |
392 | 返回:node |
名称 | 描述 |
---|---|
xas_expand | xas_expand adds nodes to the head of the tree until it has reached* sufficient height to be able to contain @xas->xa_index |
xas_create | xas_create() - Create a slot to store an entry in.*@xas: XArray operation state.*@allow_root: %true if we can store the entry in the root directly* Most users will not need to call this function directly, as it is called* by xas_store() |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |