函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_cluster

函数原型:static void alloc_cluster(struct swap_info_struct *si, unsigned long idx)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *si
unsigned longidx
505  ci等于cluster info. Only for SSD
507  VM_BUG_ON(cluster_list_first( & clusters list ) != idx)
508  cluster_list_del_first( & clusters list , ci)
509  cluster_set_count_flag(ci + idx, 0, 0)
调用者
名称描述
inc_cluster_info_pageThe cluster corresponding to page_nr will be used. The cluster will be* removed from free cluster list and its usage counter will be increased.
swap_alloc_cluster