函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ree functions

函数原型:static struct zswap_entry *zswap_rb_search(struct rb_root *root, unsigned long offset)

返回类型:struct zswap_entry

参数:

类型参数名称
struct rb_root *root
unsigned longoffset
269  node等于rb_node
272 node循环
273  entry等于rb_entry(node, structzswap_entry, rbnode)
274  如果 the swap offset for the entry. Index into the red-black tree.大于offsetnode等于rb_left
276  否则如果 the swap offset for the entry. Index into the red-black tree.小于offsetnode等于rb_right
278  否则返回:entry
281  返回:NULL
调用者
名称描述
zswap_entry_find_getaller must hold the tree lock
zswap_writeback_entry
zswap_frontswap_invalidate_pages an entry in zswap