函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zswap_get_swap_cache_page* This is an adaption of read_swap_cache_async()* This function tries to find a page with the given swap entry* in the swapper_space address space (the swap cache). If the page* is found, it is returned in retpage

函数原型:static int zswap_get_swap_cache_page(swp_entry_t entry, struct page **retpage)

返回类型:int

参数:

类型参数名称
swp_entry_tentry
struct page **retpage
819  retpage等于__read_swap_cache_async(entry, GFP_KERNEL, NULL, 0, & page_was_allocated)
821  如果page_was_allocated则返回:ZSWAP_SWAPCACHE_NEW
823  如果非retpage则返回:ZSWAP_SWAPCACHE_FAIL
825  返回:ZSWAP_SWAPCACHE_EXIST
调用者
名称描述
zswap_writeback_entry