Function report |
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 activity | Download SCCT | Chinese |
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 |
| 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 |
| 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)) |
| 1330 | Else |
| 1331 | pr_err("pool creation failed\n") |
| 1332 | Enable/disable zswap (disabled by default) = false |
| 1336 | If zswap_debugfs_init() Then pr_warn("debugfs initialization failed\n") |
| 1338 | Return 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 | Return -ENOMEM |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |