Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kasan_kmalloc_large

Proto:void *__must_check kasan_kmalloc_large(const void *ptr, size_t size, gfp_t flags)

Type:void

Parameter:

TypeParameterName
const void *ptr
size_tsize
gfp_tflags
538  If gfpflags_allow_blocking(flags) Then quarantine_reduce()
541  If Value for the false possibility is greater at compile time(ptr == NULL) Then Return NULL
544  page = virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(ptr)
545  redzone_start = und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.((unsignedlong)(ptr + size), KASAN_SHADOW_SCALE_SIZE)
547  redzone_end = ptr + Returns the number of bytes in this potentially compound page.
549  kasan_unpoison_shadow(ptr, size)
550  Poisons the shadow memory for 'size' bytes starting from 'addr'.* Memory addresses should be aligned to KASAN_SHADOW_SCALE_SIZE.
553  Return ptr
Caller
NameDescribe
kmalloc_large_node_hookHooks for other subsystems that check memory allocations. In a typical* production configuration these hooks all should produce no code at all.
kasan_krealloc