| Function report | 
| Source Code: mm\zsmalloc.c | Create Date:2022-07-28 16:26:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Each size class maintains zspages in different fullness groups depending* on the number of live objects they contain. When allocating or freeing* objects, the fullness status of the page can change, say, from ALMOST_FULL
Proto:static enum fullness_group fix_fullness_group(struct size_class *class, struct zspage *zspage)
Type:enum fullness_group
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct size_class * | class | |
| struct zspage * | zspage | 
| 772 | get_zspage_mapping(zspage, & class_idx, & currfg) | 
| 777 | If Not is_zspage_isolated(zspage) Then | 
| 782 | set_zspage_mapping(zspage, class_idx, newfg) | 
| 784 | out : | 
| 785 | Return newfg | 
| Name | Describe | 
|---|---|
| zs_malloc | zs_malloc - Allocate block of given size from pool.*@pool: pool to allocate from*@size: size of block to allocate*@gfp: gfp flags when allocating object* On success, handle to the allocated object is returned,* otherwise 0. | 
| zs_free | 
| 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 |