函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:total_swapcache_pages

函数原型:unsigned long total_swapcache_pages(void)

返回类型:unsigned long

参数:

74  ret等于0
78 i小于MAX_SWAPFILES循环
79  entry等于Store a type+offset into a swp_entry_t in an arch-independent format
82  如果非swp_swap_info(entry)则继续下一循环
85  si等于Check whether swap entry is valid in the swap device
86  如果非si则继续下一循环
88  nr等于nr_swapper_spaces[i]
89  spaces等于swapper_spaces[i]
90 j小于nr循环ret加等于nrpages
92  put_swap_device(si)
94  返回:ret
调用者
名称描述
show_swap_cache_info