Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:module init and exit

Proto:static int __init init_zswap(void)

Type:int

Parameter:Nothing

1303  used by param callback function = true
1305  If zswap_entry_cache_create() Then
1306  pr_err("entry cache creation failed\n")
1307  Go to cache_fail
1310  ret = puhp_setup_state - Setup hotplug state callbacks with calling the callbacks*@state: The state for which the calls are installed*@name: Name of the callback (will be used in debug output)*@startup: startup callback function*@teardown: teardown callback
1312  If ret Then
1313  pr_err("dstmem alloc failed\n")
1314  Go to dstmem_fail
1317  ret = puhp_setup_state_multi - Add callbacks for multi state*@state: The state for which the calls are installed*@name: Name of the callback
1321  If ret Then Go to hp_fail
1324  pool = __zswap_pool_create_fallback()
1325  If pool Then
1326  pr_info("loaded using pool %s/%s\n", tfm_name, zpool_get_type(zpool))
1328  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1329  it completed, but couldn't create the initial pool = true
1330  Else
1331  pr_err("pool creation failed\n")
1332  Enable/disable zswap (disabled by default) = false
1335  Register operations for frontswap
1336  If zswap_debugfs_init() Then pr_warn("debugfs initialization failed\n")
1338  Return 0
1340  hp_fail :
1341  puhp_remove_state - Remove hotplug state callbacks and invoke the teardown*@state: The state for which the calls are removed* Removes the callback functions and invokes the teardown callback on* the present cpus which have already reached the @state.
1342  dstmem_fail :
1343  zswap_entry_cache_destroy()
1344  cache_fail :
1346  atal error during init = true
1347  Enable/disable zswap (disabled by default) = false
1348  Return -ENOMEM