Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zswap.c Create Date:2022-07-28 15:22:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:zswap_cpu_comp_prepare

Proto:static int zswap_cpu_comp_prepare(unsigned int cpu, struct hlist_node *node)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
struct hlist_node *node
400  pool = hlist_entry(node, structzswap_pool, node)
403  If WARN_ON( * per_cpu_ptr(tfm, cpu)) Then Return 0
406  tfm = crypto_alloc_comp(tfm_name, 0, 0)
407  If IS_ERR_OR_NULL(tfm) Then
408  pr_err("could not alloc crypto comp %s : %ld\n", tfm_name, PTR_ERR(tfm))
410  Return -ENOMEM
412  per_cpu_ptr(tfm, cpu) = tfm
413  Return 0