Function report |
Source Code:mm\slub.c |
Create Date:2022-07-28 15:48:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:calculate_order
Proto:static inline int calculate_order(unsigned int size)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | size |
3286 | min_objects = slub_min_objects |
3289 | max_objects = order_objects(slub_max_order, size) |
3290 | min_objects = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(min_objects, max_objects) |
3292 | When min_objects > 1 cycle |
3295 | fraction = 16 |
3299 | If order <= slub_max_order Then Return order |
3301 | fraction /= 2 |
3303 | min_objects-- |
3311 | If order <= slub_max_order Then Return order |
3318 | If order < Free memory management - zoned buddy allocator. Then Return order |
3320 | Return -ENOSYS |
Name | Describe |
---|---|
calculate_sizes | alculate_sizes() determines the order and the distribution of data within* a slab object. |
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 |