函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Free all of a swapdev's extent information

函数原型:static void destroy_swap_extents(struct swap_info_struct *sis)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *sis
2286  当非RB_EMPTY_ROOT( & of the swap extent rbtree )循环
2287  rb等于rb_node
2288  se等于rb_entry(rb, structswap_extent, rb_node)
2290  rb_erase(rb, & of the swap extent rbtree )
2291  释放内存
2294  如果SWP_USED etc: see above 按位与SWP_ACTIVATED
2295  swap_file等于seldom referenced
2296  mapping等于f_mapping
2298  SWP_USED etc: see above 与等于SWP_ACTIVATED的反
2299  如果swap_deactivateswap_deactivate(swap_file)
调用者
名称描述
SYSCALL_DEFINE1
SYSCALL_DEFINE2