函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Invalidate any data from frontswap associated with the specified swaptype* and offset so that a subsequent "get" will fail.

函数原型:void __frontswap_invalidate_page(unsigned type, unsigned long offset)

返回类型:void

参数:

类型参数名称
unsignedtype
unsigned longoffset
333  sis等于swap_info[type]
336  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)
337  VM_BUG_ON(sis == NULL)
339  如果非__frontswap_test(sis, offset)则返回
342  for_each_frontswap_ops(ops)
343  invalidate_page(type, offset)
344  __frontswap_clear(sis, offset)
345  inc_frontswap_invalidates()