Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_enable_swap_info

Proto:static void _enable_swap_info(struct swap_info_struct *p)

Type:void

Parameter:

TypeParameterName
struct swap_info_struct *p
2452  SWP_USED etc: see above |= SWP_WRITEOK | SWP_VALID
2453  atomic_long_add(al of usable pages of swap , & nr_swap_pages)
2454  protected with swap_lock. reading in vm_swap_full() doesn't need lock += al of usable pages of swap
2456  assert_spin_locked( & swap_lock)
2467  plist_add - add @node to @head*@node: &struct plist_node pointer*@head: &struct plist_head pointer
2468  add_to_avail_list(p)
Caller
NameDescribe
enable_swap_info
reinsert_swap_info