Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\frontswap.c Create Date:2022-07-28 15:21:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Count and return the number of frontswap pages across all* swap devices. This is exported so that backend drivers can* determine current usage without reading debugfs.

Proto:unsigned long frontswap_curr_pages(void)

Type:unsigned long

Parameter:Nothing

472  totalpages = 0
474  spin_lock( & swap_lock)
475  totalpages = __frontswap_curr_pages()
476  spin_unlock( & swap_lock)
478  Return totalpages