函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swap_range_alloc

函数原型:static void swap_range_alloc(struct swap_info_struct *si, unsigned long offset, unsigned int nr_entries)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *si
unsigned longoffset
unsigned intnr_entries
676  end等于offsetnr_entries减1
678  如果offset恒等于dex of first free in swap_map dex of first free in swap_map 加等于nr_entries
680  如果end恒等于dex of last free in swap_map dex of last free in swap_map 减等于nr_entries
682  umber of those currently in use 加等于nr_entries
683  如果umber of those currently in use 恒等于al of usable pages of swap
684  dex of first free in swap_map 等于xtent of the swap_map
685  dex of last free in swap_map 等于0
686  del_from_avail_list(si)
调用者
名称描述
scan_swap_map_slots
swap_alloc_cluster