Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:After a successful try_to_unuse, if no swap is now in use, we know* we can empty the mmlist. swap_lock must be held on entry and exit.* Note that mmlist_lock nests inside swap_lock, and an mm must be

Proto:static void drain_mmlist(void)

Type:void

Parameter:Nothing

2242  When type < nr_swapfiles cycle If umber of those currently in use Then
2244  Return
2245  spin_lock( & mmlist_lock)
2246  list_for_each_safe - iterate over a list safe against removal of list entry*@pos: the &struct list_head to use as a loop cursor.*@n: another &struct list_head to use as temporary storage*@head: the head for your list.(p, next, & List of maybe swapped mm's. These * are globally strung together off * init_mm.mmlist, and are protected * by mmlist_lock)
2247  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2248  spin_unlock( & mmlist_lock)
Caller
NameDescribe
SYSCALL_DEFINE1