函数逻辑报告 |
Source Code:mm\zswap.c |
Create Date:2022-07-27 16:54:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 |
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 |
1324 | pool等于__zswap_pool_create_fallback() |
1325 | 如果pool则 |
1326 | 打印信息("loaded using pool %s/%s\n", tfm_name, zpool_get_type(zpool)) |
1328 | 添加链表项 |
1330 | 否则 |
1331 | 打印错误信息("pool creation failed\n") |
1332 | Enable/disable zswap (disabled by default) = false |
1336 | 如果zswap_debugfs_init()则打印警告信息("debugfs initialization failed\n") |
1338 | 返回:0 |
1340 | hp_fail : |
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |