Function report |
Source Code:mm\zswap.c |
Create Date:2022-07-28 15:22:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:val must be a null-terminated string
Proto:static int __zswap_param_set(const char *val, const struct kernel_param *kp, char *type, char *compressor)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | val | |
| const struct kernel_param * | kp | |
| char * | type | |
| char * | compressor |
| 669 | struct zswap_pool * pool, * put_pool = NULL |
| 673 | If atal error during init Then |
| 679 | If Not strcmp(s, * (char * * )arg) && it completed, but couldn't create the initial pool Then Return 0 |
| 685 | If Not used by param callback function Then Return param_set_charp(s, kp) |
| 688 | If Not type Then |
| 689 | If Not zpool_has_pool(s) Then |
| 694 | Else if Not compressor Then |
| 695 | If Not crypto_has_comp(s, 0, 0) Then |
| 699 | compressor = s |
| 700 | Else |
| 708 | If pool Then |
| 709 | helpers and fwd declarations("using existing", pool) |
| 710 | WARN_ON(pool == zswap_pool_current()) |
| 716 | If Not pool Then pool = zswap_pool_create(type, compressor) |
| 719 | If pool Then ret = param_set_charp(s, kp) |
| 726 | If Not ret Then |
| 727 | put_pool = zswap_pool_current() |
| 730 | Else if pool Then |
| 741 | If Not it completed, but couldn't create the initial pool && Not pool Then |
| 749 | ret = param_set_charp(s, kp) |
| 755 | If put_pool Then zswap_pool_put(put_pool) |
| 758 | Return ret |
| Name | Describe |
|---|---|
| zswap_compressor_param_set | |
| zswap_zpool_param_set |
| 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 |