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:Help swapoff by noting that swap entry belongs to shmem/tmpfs* (in which case its reference count is never incremented).

Proto:void swap_shmem_alloc(swp_entry_t entry)

Type:void

Parameter:

TypeParameterName
swp_entry_tentry
3455  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