Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:total_swapcache_pages

Proto:unsigned long total_swapcache_pages(void)

Type:unsigned long

Parameter:Nothing

74  ret = 0
78  When i < MAX_SWAPFILES cycle
79  entry = Store a type+offset into a swp_entry_t in an arch-independent format
82  If Not swp_swap_info(entry) Then Continue
85  si = Check whether swap entry is valid in the swap device
86  If Not si Then Continue
88  nr = nr_swapper_spaces[i]
89  spaces = swapper_spaces[i]
90  When j < nr cycle ret += nrpages
92  put_swap_device(si)
94  Return ret
Caller
NameDescribe
show_swap_cache_info