Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__kmalloc

Proto:void *__kmalloc(size_t size, gfp_t flags)

Type:void

Parameter:

TypeParameterName
size_tsize
gfp_tflags
3791  If Value for the false possibility is greater at compile time(size > Maximum size for which we actually use a slab cache ) Then Return kmalloc_large(size, flags)
3794  s = kmalloc_slab(size, flags)
3796  If Value for the false possibility is greater at compile time(ZERO_OR_NULL_PTR(s)) Then Return s
3799  ret = slab_alloc(s, flags, _RET_IP_)
3801  trace_kmalloc(_RET_IP_, ret, size, The size of an object including metadata , flags)
3803  ret = kasan_kmalloc(s, ret, size, flags)
3805  Return ret
Caller
NameDescribe
kmallocAllocation memory
kmalloc_arraykmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).