函数逻辑报告 |
Source Code:mm\slub.c |
Create Date:2022-07-27 17:23:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alculate_sizes() determines the order and the distribution of data within* a slab object.
函数原型:static int calculate_sizes(struct kmem_cache *s, int forced_order)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | s | |
int | forced_order |
3504 | size等于@a is a power of 2 value (size, *的长度) |
3532 | Offset to metadata 等于size |
3534 | 如果flags按位与Defer freeing slabs to RCU 按位或DEBUG: Poison objects 的值或ctor则 |
3544 | Free pointer offset 等于size |
3545 | size加等于*的长度 |
3557 | kasan_cache_create(s, & size, & Used for retrieving partial slabs, etc. ) |
3580 | size等于@a is a power of 2 value (size, Alignment ) |
3582 | 如果forced_order大于等于0则order等于forced_order |
3584 | 否则order等于calculate_order(size) |
3587 | 如果order小于0则返回:0 |
3590 | gfp flags to use on each alloc 等于0 |
3591 | 如果order则gfp flags to use on each alloc 或等于__GFP_COMP |
3594 | 如果Used for retrieving partial slabs, etc. 按位与Use GFP_DMA memory 则gfp flags to use on each alloc 或等于GFP_DMA |
3597 | 如果Used for retrieving partial slabs, etc. 按位与Use GFP_DMA32 memory 则gfp flags to use on each alloc 或等于GFP_DMA32 |
3607 | min等于oo_make(get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory, size) |
3608 | 如果oo_objects(oo)大于oo_objects(Allocation and freeing of slabs )则Allocation and freeing of slabs 等于oo |
3611 | 返回:非非oo_objects(oo) |
名称 | 描述 |
---|---|
kmem_cache_open |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |