函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\swapfile.c Create Date:2022-07-27 16:49:03
Last Modify:2020-03-17 22:19:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static void drain_mmlist(void)

返回类型:void

参数:

2242 type小于nr_swapfiles循环如果umber of those currently in use
2244  返回
2245  加自旋锁
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  删除链表项并重新初始化
2248  自旋锁解锁
调用者
名称描述
SYSCALL_DEFINE1