Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zswap_frontswap_init

Proto:static void zswap_frontswap_init(unsigned type)

Type:void

Parameter:

TypeParameterName
unsignedtype
1224  tree = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1225  If Not tree Then
1226  pr_err("alloc failed, zswap disabled for swap type %d\n", type)
1227  Return
1230  rbroot =
1231  Process spin lock initialization( & lock)
1232  zswap_trees[type] = tree