Function report |
Source Code:mm\zswap.c |
Create Date:2022-07-28 15:22:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zswap_pool_create
Proto:static struct zswap_pool *zswap_pool_create(char *type, char *compressor)
Type:struct zswap_pool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | type | |
| char * | compressor |
| 511 | If Not it completed, but couldn't create the initial pool Then |
| 518 | If Not strcmp(compressor, unables) Then Return NULL |
| 522 | pool = 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). |
| 523 | If Not pool Then Return NULL |
| 529 | zpool = zpool_create_pool(type, name, gfp, & zswap_zpool_ops) |
| 530 | If Not zpool Then |
| 534 | pr_debug("using %s zpool\n", zpool_get_type(zpool)) |
| 537 | tfm = alloc_percpu(structcrypto_comp * ) |
| 538 | If Not tfm Then |
| 555 | helpers and fwd declarations("created", pool) |
| 557 | Return pool |
| 559 | error : |
| 561 | If zpool Then zpool_destroy_pool(zpool) |
| 564 | Return NULL |
| Name | Describe |
|---|---|
| __zswap_pool_create_fallback | |
| __zswap_param_set | val must be a null-terminated string |
| 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 |