Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:How many references to @entry are currently swapped out?* This does not give an exact answer when swap count is continued,* but does include the high COUNT_CONTINUED flag to allow for that.

Proto:int __swp_swapcount(swp_entry_t entry)

Type:int

Parameter:

TypeParameterName
swp_entry_tentry
1481  count = 0
1484  si = Check whether swap entry is valid in the swap device
1485  If si Then
1486  count = swap_swapcount(si, entry)
1487  put_swap_device(si)
1489  Return count