Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:swap_info_get_cont

Proto:static struct swap_info_struct *swap_info_get_cont(swp_entry_t entry, struct swap_info_struct *q)

Type:struct swap_info_struct

Parameter:

TypeParameterName
swp_entry_tentry
struct swap_info_struct *q
1166  p = _swap_info_get(entry)
1168  If p != q Then
1169  If (q != NULL) Then spin_unlock( & protect map scan related fields like* swap_map, lowest_bit, highest_bit,* inuse_pages, cluster_next,* cluster_nr, lowest_alloc,* highest_alloc, free/discard cluster* list. other fields are only changed* at swapon/swapoff, so are protected* by swap_lock)
1171  If (p != NULL) Then spin_lock( & protect map scan related fields like* swap_map, lowest_bit, highest_bit,* inuse_pages, cluster_next,* cluster_nr, lowest_alloc,* highest_alloc, free/discard cluster* list. other fields are only changed* at swapon/swapoff, so are protected* by swap_lock)
1174  Return p
Caller
NameDescribe
swapcache_free_entries