函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:setup_swap_info

函数原型:static void setup_swap_info(struct swap_info_struct *p, int prio, unsigned char *swap_map, struct swap_cluster_info *cluster_info)

返回类型:void

参数:

类型参数名称
struct swap_info_struct *p
intprio
unsigned char *swap_map
struct swap_cluster_info *cluster_info
2427  如果prio大于等于0则swap priority of this type 等于prio
2429  否则swap priority of this type 等于least_priority先自减
2435  swap priority of this type 等于负swap priority of this type
2436  for_each_node(i)
2437  如果swap priority of this type 大于等于0则prio等于负swap priority of this type
2439  否则
2440  如果swap_node(p)恒等于iprio等于1
2442  否则prio等于负swap priority of this type
2446  vmalloc'ed array of usage counts 等于swap_map
2447  cluster info. Only for SSD 等于cluster_info
调用者
名称描述
enable_swap_info
reinsert_swap_info