| 函数逻辑报告 | 
| Source Code: mm\z3fold.c | Create Date:2022-07-27 18:05:09 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:z3fold_create_pool() - create a new z3fold pool*@name: pool name*@gfp: gfp flags when allocating the z3fold pool structure*@ops: user-defined operations for the z3fold pool* Return: pointer to the new z3fold pool or NULL if the metadata allocation* failed.
函数原型:static struct z3fold_pool *z3fold_create_pool(const char *name, gfp_t gfp, const struct z3fold_ops *ops)
返回类型:struct z3fold_pool
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char * | name | |
| gfp_t | gfp | |
| const struct z3fold_ops * | ops | 
| 993 | struct z3fold_pool * pool = NULL | 
| 1004 | spin_lock_init( & lock) | 
| 1005 | spin_lock_init( & stale_lock) | 
| 1015 | 初始化链表头 | 
| 1016 | 初始化链表头 | 
| 1017 | atomic64_set( & pages_nr, 0) | 
| 1020 | 如果非compact_wq则转到:out_unbuddied | 
| 1023 | 如果非release_wq则转到:out_wq | 
| 1025 | 如果z3fold_register_migration(pool)则转到:out_rwq | 
| 1027 | INIT_WORK( & work, free_pages_work) | 
| 1029 | 返回:pool | 
| 1031 | out_rwq : | 
| 1033 | out_wq : | 
| 1035 | out_unbuddied : | 
| 1036 | 释放内存 | 
| 1037 | out_pool : | 
| 1038 | 删除高速缓存区 | 
| 1039 | out_c : | 
| 1040 | 释放内存 | 
| 1041 | out : | 
| 1042 | 返回:NULL | 
| 名称 | 描述 | 
|---|---|
| z3fold_zpool_create | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |