Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_krealloc

Proto:void *__must_check kasan_krealloc(const void *object, size_t size, gfp_t flags)

Type:void

Parameter:

TypeParameterName
const void *object
size_tsize
gfp_tflags
560  If Value for the false possibility is greater at compile time(object == ZERO_SIZE_PTR will be returned for zero sized kmalloc requests.* Dereferencing ZERO_SIZE_PTR will lead to a distinct access fault.* ZERO_SIZE_PTR can be passed to kfree though in the same way that NULL can.* Both make kfree a no-op.) Then Return object
563  page = virt_to_head_page(object)
565  If Value for the false possibility is greater at compile time(!PageSlab(page)) Then Return kasan_kmalloc_large(object, size, flags)
567  Else Return __kasan_kmalloc( not slob , object, size, flags, true)