Function report |
Source Code:mm\zpool.c |
Create Date:2022-07-28 16:25:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zpool_create_pool() - Create a new zpool*@type: The type of the zpool to create (e.g. zbud, zsmalloc)*@name: The name of the zpool (e.g. zram0, zswap)*@gfp: The GFP flags to use when allocating the pool.*@ops: The optional ops callback.
Proto:struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp, const struct zpool_ops *ops)
Type:struct zpool
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | type | |
const char * | name | |
gfp_t | gfp | |
const struct zpool_ops * | ops |
165 | If Not driver Then |
166 | try to load a kernel module("zpool-%s", type) |
170 | If Not driver Then |
176 | If Not zpool Then |
187 | If Not pool Then |
189 | zpool_put_driver(driver) |
191 | Return NULL |
196 | spin_lock( & pools_lock) |
198 | spin_unlock( & pools_lock) |
200 | Return zpool |
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 |