函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The only caller of this function is now suspend routine

函数原型:swp_entry_t get_swap_page_of_type(int type)

返回类型:swp_entry_t

参数:

类型参数名称
inttype
1082  si等于swap_type_to_swap_info(type)
1085  如果非si则转到:fail
1088  加自旋锁
1089  如果SWP_USED etc: see above 按位与SWP_WRITEOK
1090  atomic_long_dec( & nr_swap_pages)
1092  offset等于scan_swap_map(si, 1)
1093  如果offset
1097  atomic_long_inc( & nr_swap_pages)
1099  自旋锁解锁
1100  fail :
1101  返回:(swp_entry_t){0}
调用者
名称描述
alloc_swapdev_blockalloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error.