函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swap_info_get

函数原型:static struct swap_info_struct *swap_info_get(swp_entry_t entry)

返回类型:struct swap_info_struct

参数:

类型参数名称
swp_entry_tentry
1155  p等于_swap_info_get(entry)
1156  如果p加自旋锁
1158  返回:p
调用者
名称描述
reuse_swap_pageWe can write to an anon page without COW if there are no other references* to it. And as a side-effect, free up its swap: because the old content* on disk will never be read, and seeking back there to write new content