Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Increase reference count of swap entry by 1

Proto:int swap_duplicate(swp_entry_t entry)

Type:int

Parameter:

TypeParameterName
swp_entry_tentry
3467  err = 0
3469  When Not err && Verify that a swap entry is valid and increment its swap map count.* Returns error code in following case.* - success -> 0* - swp_entry is invalid -> EINVAL* - swp_entry is migration entry -> EINVAL == -ENOMEM cycle
3470  err = add_swap_count_continuation - called when a swap count is duplicated* beyond SWAP_MAP_MAX, it allocates a new page and links that to the entry's* page of the original vmalloc'ed swap_map, to hold the continuation count
3471  Return err
Caller
NameDescribe
try_to_unmap_one@arg: enum ttu_flags will be passed to this argument