Function report |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-28 16:26:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zsmalloc divides the pool into various size classes where each* class maintains a list of zspages where each zspage is divided* into equal sized chunks. Each allocation falls into one of these* classes depending on its size
Proto:static int get_size_class_index(int size)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | size |
541 | idx = 0 |
547 | Return min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, ZS_SIZE_CLASSES - 1, idx) |
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. |
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 |