Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-28 15:49:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__kmalloc_node

Proto:void *__kmalloc_node(size_t size, gfp_t flags, int node)

Type:void

Parameter:

TypeParameterName
size_tsize
gfp_tflags
intnode
3832  If Value for the false possibility is greater at compile time(size > Maximum size for which we actually use a slab cache ) Then
3833  ret = kmalloc_large_node(size, flags, node)
3835  trace_kmalloc_node(_RET_IP_, ret, size, PAGE_SIZE << 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, flags, node)
3839  Return ret
3842  s = kmalloc_slab(size, flags)
3844  If Value for the false possibility is greater at compile time(ZERO_OR_NULL_PTR(s)) Then Return s
3847  ret = Inlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc)* have the fastpath folded into their functions. So no function call* overhead for requests that can be satisfied on the fastpath.
3849  trace_kmalloc_node(_RET_IP_, ret, size, The size of an object including metadata , flags, node)
3851  ret = kasan_kmalloc(s, ret, size, flags)
3853  Return ret
Caller
NameDescribe
kmalloc_node
kmalloc_array_node