Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-28 15:17:33
Last Modify:2020-03-17 22:19:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:void swap_free(swp_entry_t entry)

Type:void

Parameter:

TypeParameterName
swp_entry_tentry
1317  p = _swap_info_get(entry)
1318  If p Then __swap_entry_free(p, entry, 1)
Caller
NameDescribe
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.