函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swap_entry_free

函数原型:static void swap_entry_free(struct swap_info_struct *p, swp_entry_t entry)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *p
swp_entry_tentry
1295  offset等于Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
1298  ci等于lock_cluster(p, offset)
1299  count等于vmalloc'ed array of usage counts [offset]
1300  VM_BUG_ON(count != Flag page is cached, in first swap_map )
1301  vmalloc'ed array of usage counts [offset]等于0
1302  The cluster corresponding to page_nr decreases one usage. If the usage* counter becomes 0, which means no page in the cluster is in using, we can* optionally discard the cluster and add it to free cluster list.
1303  unlock_cluster(ci)
1305  mem_cgroup_uncharge_swap(entry, 1)
1306  swap_range_free(p, offset, 1)
调用者
名称描述
swapcache_free_entries