函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:module init and exit

函数原型:static int __init init_zswap(void)

返回类型:int

参数:

1303  used by param callback function = true
1305  如果zswap_entry_cache_create()则
1306  打印错误信息("entry cache creation failed\n")
1307  转到: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  如果ret
1313  打印错误信息("dstmem alloc failed\n")
1314  转到: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  如果ret则转到:hp_fail
1324  pool等于__zswap_pool_create_fallback()
1325  如果pool
1326  打印信息("loaded using pool %s/%s\n", tfm_name, zpool_get_type(zpool))
1328  添加链表项
1329  it completed, but couldn't create the initial pool = true
1330  否则
1331  打印错误信息("pool creation failed\n")
1332  Enable/disable zswap (disabled by default) = false
1335  Register operations for frontswap
1336  如果zswap_debugfs_init()则打印警告信息("debugfs initialization failed\n")
1338  返回: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  返回:负ENOMEM