函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Help swapoff by noting that swap entry belongs to shmem/tmpfs* (in which case its reference count is never incremented).

函数原型:void swap_shmem_alloc(swp_entry_t entry)

返回类型:void

参数:

类型参数名称
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