函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\swap.h Create Date:2022-07-27 06:56:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:try_to_free_swap

函数原型:static inline int try_to_free_swap(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
607  返回:0
调用者
名称描述
__replace_page__replace_page - replace page in vma by new page
shrink_page_listshrink_page_list() returns the number of reclaimed pages
do_swap_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases
madvise_free_pte_range
swap_writepageWe may have stale swap cache pages in memory: notice* them here and get rid of the unnecessary final write.