函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_enable_swap_info

函数原型:static void _enable_swap_info(struct swap_info_struct *p)

返回类型:void

参数:

类型参数名称
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  添加节点到头上
2468  add_to_avail_list(p)
调用者
名称描述
enable_swap_info
reinsert_swap_info