函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swap_type_to_swap_info

函数原型:static struct swap_info_struct *swap_type_to_swap_info(int type)

返回类型:struct swap_info_struct

参数:

类型参数名称
inttype
104  如果type大于等于READ_ONCE(nr_swapfiles)则返回:NULL
107  smp_rmb()
108  返回:READ_ONCE(swap_info[type])
调用者
名称描述
get_swap_page_of_typeThe only caller of this function is now suspend routine
swap_startrator
swap_next
swp_swap_info