函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zswap_cpu_comp_prepare

函数原型:static int zswap_cpu_comp_prepare(unsigned int cpu, struct hlist_node *node)

返回类型:int

参数:

类型参数名称
unsigned intcpu
struct hlist_node *node
400  pool等于hlist_entry(node, structzswap_pool, node)
403  如果WARN_ON( * per_cpu_ptr(tfm, cpu))则返回:0
406  tfm等于crypto_alloc_comp(tfm_name, 0, 0)
407  如果是错误或空
408  打印错误信息("could not alloc crypto comp %s : %ld\n", tfm_name, 错误)
410  返回:负ENOMEM
412  per_cpu_ptr(tfm, cpu)等于tfm
413  返回:0