Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:krealloc - reallocate memory. The contents will remain unchanged.*@p: object to reallocate memory for.*@new_size: how many bytes of memory are required.*@flags: the type of memory to allocate.* The contents of the object pointed to are preserved up to the

Proto:void *krealloc(const void *p, size_t new_size, gfp_t flags)

Type:void

Parameter:

TypeParameterName
const void *p
size_tnew_size
gfp_tflags
1718  If Value for the false possibility is greater at compile time(!new_size) Then
1719  kfree(p)
1720  Return 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.
1723  ret = __do_krealloc(p, new_size, flags)
1724  If ret && kasan_reset_tag(p) != kasan_reset_tag(ret) Then kfree(p)
1727  Return ret
Caller
NameDescribe
kmalloc_oob_krealloc_less
test_parman_resize
parse_entryCaller is responsible to free the *pentry.
push_jmp_historyr any branch, call, exit record the history of jmps in the given state
ima_collect_measurementma_collect_measurement - collect file measurement* Calculate the file hash, if it doesn't already exist,* storing the measurement and i_version in the iint.* Must be called with iint->mutex held.* Return 0 on success, error code otherwise
expand_corenameThe maximal length of core_pattern is also specified in sysctl.c
kmalloc_oob_krealloc_more