函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Increase reference count of swap entry by 1

函数原型:int swap_duplicate(swp_entry_t entry)

返回类型:int

参数:

类型参数名称
swp_entry_tentry
3467  err等于0
3469  当非errVerify 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循环
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  返回:err
调用者
名称描述
try_to_unmap_one@arg: enum ttu_flags will be passed to this argument