函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Free the swap entry like above, but also try to* free the page cache entry if it is the last user.

函数原型:int free_swap_and_cache(swp_entry_t entry)

返回类型:int

参数:

类型参数名称
swp_entry_tentry
1737  如果non_swap_entry(entry)则返回:1
1740  p等于_swap_info_get(entry)
1741  如果p
1742  count等于__swap_entry_free(p, entry, 1)
1743  如果count恒等于Flag page is cached, in first swap_map 且非swap_page_trans_huge_swapped(p, entry)则rns 1 if swap entry is freed
1748  返回:p != NULL
调用者
名称描述
zap_pte_range
madvise_free_pte_range