函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:s all zswap entries for the given swap type

函数原型:static void zswap_frontswap_invalidate_area(unsigned type)

返回类型:void

参数:

类型参数名称
unsignedtype
1204  tree等于zswap_trees[type]
1207  如果非tree则返回
1211  加自旋锁
1212  ree_postorder_for_each_entry_safe - iterate in post-order over rb_root of* given type allowing the backing memory of @pos to be invalidated*@pos: the 'type *' to use as a loop cursor.*@n: another 'type *' to use as temporary storage(entry, n, & rbroot, rbnode)
1213  Carries out the common pattern of freeing and entry's zpool allocation,* freeing the entry itself, and decrementing the number of stored pages.
1214  rbroot =
1215  自旋锁解锁
1216  释放内存
1217  zswap_trees[type] = NULL