函数逻辑报告 |
Source Code:mm\zswap.c |
Create Date:2022-07-27 16:52:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:In the case that a entry with the same offset is found, a pointer to* the existing entry is stored in dupentry and the function returns -EEXIST
函数原型:static int zswap_rb_insert(struct rb_root *root, struct zswap_entry *entry, struct zswap_entry **dupentry)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rb_root * | root | |
struct zswap_entry * | entry | |
struct zswap_entry ** | dupentry |
296 | myentry等于rb_entry(parent, structzswap_entry, rbnode) |
297 | 如果 the swap offset for the entry. Index into the red-black tree.大于 the swap offset for the entry. Index into the red-black tree.则link等于rb_left |
299 | 否则如果 the swap offset for the entry. Index into the red-black tree.小于 the swap offset for the entry. Index into the red-black tree.则link等于rb_right |
301 | 否则 |
306 | rb_link_node( & links the entry into red-black tree for the appropriate swap type, parent, link) |
308 | 返回:0 |
名称 | 描述 |
---|---|
zswap_frontswap_store | attempts to compress and store an single page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |