Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__swap_count

Proto:int __swap_count(swp_entry_t entry)

Type:int

Parameter:

TypeParameterName
swp_entry_tentry
1451  offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
1452  count = 0
1454  si = Check whether swap entry is valid in the swap device
1455  If si Then
1456  count = swap_count(vmalloc'ed array of usage counts [offset])
1457  put_swap_device(si)
1459  Return count
Caller
NameDescribe
swap_slot_free_notify