Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__swap_info_get

Proto:static struct swap_info_struct *__swap_info_get(swp_entry_t entry)

Type:struct swap_info_struct

Parameter:

TypeParameterName
swp_entry_tentry
1109  If Not val Then Go to out
1111  p = swp_swap_info(entry)
1112  If Not p Then Go to bad_nofile
1114  If Not (SWP_USED etc: see above & SWP_USED) Then Go to bad_device
1116  offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
1117  If offset >= xtent of the swap_map Then Go to bad_offset
1119  Return p
1121  bad_offset :
1122  pr_err("swap_info_get: %s%08lx\n", Bad_offset, val)
1123  Go to out
1124  bad_device :
1125  pr_err("swap_info_get: %s%08lx\n", Unused_file, val)
1126  Go to out
1127  bad_nofile :
1128  pr_err("swap_info_get: %s%08lx\n", Bad_file, val)
1129  out :
1130  Return NULL
Caller
NameDescribe
_swap_info_get