Function report |
Source Code:mm\z3fold.c |
Create Date:2022-07-28 16:29:57 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static struct z3fold_pool *z3fold_create_pool(const char *name, gfp_t gfp, const struct z3fold_ops *ops)
Type:struct z3fold_pool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | name | |
| gfp_t | gfp | |
| const struct z3fold_ops * | ops |
| 993 | struct z3fold_pool * pool = NULL |
| 996 | 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). |
| 1004 | Process spin lock initialization( & lock) |
| 1009 | for_each_possible_cpu(cpu) |
| 1010 | unbuddied = per_cpu_ptr(unbuddied, cpu) |
| 1012 | for_each_unbuddied_list(i, 0) |
| 1017 | atomic64_set( & pages_nr, 0) |
| 1020 | If Not compact_wq Then Go to out_unbuddied |
| 1023 | If Not release_wq Then Go to out_wq |
| 1025 | If z3fold_register_migration(pool) Then Go to out_rwq |
| 1027 | INIT_WORK( & work, free_pages_work) |
| 1029 | Return pool |
| 1031 | out_rwq : |
| 1033 | out_wq : |
| 1035 | out_unbuddied : |
| 1037 | out_pool : |
| 1038 | kmem_cache_destroy(c_handle) |
| 1039 | out_c : |
| 1041 | out : |
| 1042 | Return NULL |
| Name | Describe |
|---|---|
| z3fold_zpool_create |
| 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 |