Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:swap_type_to_swap_info

Proto:static struct swap_info_struct *swap_type_to_swap_info(int type)

Type:struct swap_info_struct

Parameter:

TypeParameterName
inttype
104  If type >= READ_ONCE(nr_swapfiles) Then Return NULL
107  smp_rmb()
108  Return READ_ONCE(swap_info[type])
Caller
NameDescribe
get_swap_page_of_typeThe only caller of this function is now suspend routine
swap_startrator
swap_next
swp_swap_info