Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reinsert_swap_info

Proto:static void reinsert_swap_info(struct swap_info_struct *p)

Type:void

Parameter:

TypeParameterName
struct swap_info_struct *p
2496  spin_lock( & swap_lock)
2497  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)
2498  setup_swap_info(p, swap priority of this type , vmalloc'ed array of usage counts , cluster info. Only for SSD )
2499  _enable_swap_info(p)
2500  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)
2501  spin_unlock( & swap_lock)
Caller
NameDescribe
SYSCALL_DEFINE1