函数逻辑报告 |
Source Code:lib\assoc_array.c |
Create Date:2022-07-27 07:51:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Iterate over an associative array. The caller must hold the RCU read lock* or better.
函数原型:static int assoc_array_subtree_iterate(const struct assoc_array_ptr *root, const struct assoc_array_ptr *stop, int (*iterator)(const void *leaf, void *iterator_data), void *iterator_data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct assoc_array_ptr * | root | |
const struct assoc_array_ptr * | stop | |
int (* | iterator | |
void * | iterator_data |
33 | begin_node : |
41 | slot等于0 |
50 | has_meta等于0 |
54 | 如果ptr且assoc_array_ptr_is_leaf(ptr)则 |
74 | 如果非has_meta按位与Points to node or shortcut 的值则转到:finished_node |
76 | slot等于0 |
78 | continue_node : |
88 | finished_node : |
90 | parent等于READ_ONCE(back_pointer) |
91 | slot等于parent_slot |
98 | parent等于READ_ONCE(back_pointer) |
99 | slot等于parent_slot |
106 | slot自加 |
107 | 转到:continue_node |
名称 | 描述 |
---|---|
assoc_array_iterate | assoc_array_iterate - Pass all objects in the array to a callback*@array: The array to iterate over.*@iterator: The callback function.*@iterator_data: Private data for the callback function.* Iterate over all the objects in an associative array |
assoc_array_delete | assoc_array_delete - Script deletion of an object from an associative array*@array: The array to search.*@ops: The operations to use.*@index_key: The key to the object.* Precalculate and preallocate a script for the deletion of an object from an |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |