函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zswap_dstmem_prepare

函数原型:static int zswap_dstmem_prepare(unsigned int cpu)

返回类型:int

参数:

类型参数名称
unsigned intcpu
379  dst等于kmalloc_node(PAGE_SIZE * 2, GFP_KERNEL, cpu_to_node(cpu))
380  如果非dst则返回:负ENOMEM
383  per_cpu(per-cpu code, cpu)等于dst
384  返回:0