函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:new_slab

函数原型:static struct page *new_slab(struct kmem_cache *s, gfp_t flags, int node)

返回类型:struct page

参数:

类型参数名称
struct kmem_cache *s
gfp_tflags
intnode
1699  如果此条件成立可能性小(为编译器优化)(flags & Do not use these with a slab allocator )则
1700  invalid_mask等于flags按位与Do not use these with a slab allocator
1701  flags与等于Do not use these with a slab allocator 的反
1702  打印警告信息("Unexpected gfp: %#x (%pGg). Fixing up to gfp: %#x (%pGg). Fix your code!\n", invalid_mask, & invalid_mask, flags, & flags)
1704  dump_stack()
1707  返回:allocate_slab(s, flags & (The set of flags that only affect watermark checking and reclaim* behaviour. This is used by the MM to obey the caller constraints* about IO, FS and watermark checking while ignoring placement* hints such as HIGHMEM usage. | Control allocation cpuset and node placement constraints ), node)
调用者
名称描述
new_slab_objects
early_kmem_cache_node_allocNo kmalloc_node yet so do it by hand. We know that this is the first* slab on the node for this slabcache. There are no concurrent accesses* possible.* Note that this function only works on the kmem_cache_node* when allocating for the kmem_cache_node