函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Invalidate all data from frontswap associated with all offsets for the* specified swaptype.

函数原型:void __frontswap_invalidate_area(unsigned type)

返回类型:void

参数:

类型参数名称
unsignedtype
355  sis等于swap_info[type]
358  VM_BUG_ON(!swap_ops are added by frontswap_register_ops, and provide the* frontswap "backend" implementation functions. Multiple implementations* may be registered, but implementations can never deregister. This)
359  VM_BUG_ON(sis == NULL)
361  如果(swap in-use, one bit per page == NULL)则返回
364  for_each_frontswap_ops(ops)
365  invalidate_area(type)
366  atomic_set( & swap pages in-use counter , 0)
367  bitmap_zero(swap in-use, one bit per page , xtent of the swap_map )