函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Caller has made sure that the swap device corresponding to entry* is still around or has not been recycled.

函数原型:void swap_free(swp_entry_t entry)

返回类型:void

参数:

类型参数名称
swp_entry_tentry
1317  p等于_swap_info_get(entry)
1318  如果p__swap_entry_free(p, entry, 1)
调用者
名称描述
free_all_swap_pages_all_swap_pages - free swap pages allocated for saving image data.* It also frees the extents used to register which swap entries had been* allocated.
unuse_pteNo need to decide whether this PTE shares the swap entry with others,* just let do_wp_page work it out if a write is requested later - to* force COW, vm_page_prot omits write permission from any private vma.