函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-27 17:23:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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
intforced_order
3495  flags等于Used for retrieving partial slabs, etc.
3496  size等于The size of an object without metadata
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 )
3581  The size of an object including metadata 等于size
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  如果ordergfp 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
3600  如果Used for retrieving partial slabs, etc. 按位与Objects are reclaimable gfp flags to use on each alloc 或等于DOC: Page mobility and placement hints* Page mobility and placement hints* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* These flags provide hints about how mobile the page is
3606  oo等于oo_make(order, size)
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