函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__frontswap_clear

函数原型:static inline void __frontswap_clear(struct swap_info_struct *sis, unsigned long offset)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *sis
unsigned longoffset
234  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
235  atomic_dec( & swap pages in-use counter )
调用者
名称描述
__frontswap_store"Store" data from a page to frontswap and associate it with the page's* swaptype and offset
__frontswap_load"Get" data from frontswap associated with swaptype and offset that were* specified when the data was put to frontswap and use it to fill the* specified page with data. Page must be locked and in the swap cache.
__frontswap_invalidate_pageInvalidate any data from frontswap associated with the specified swaptype* and offset so that a subsequent "get" will fail.