Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__do_krealloc

Proto:static __always_inline void *__do_krealloc(const void *p, size_t new_size, gfp_t flags)

Type:void

Parameter:

TypeParameterName
const void *p
size_tnew_size
gfp_tflags
1662  ks = 0
1664  If p Then ks = ksize - get the actual amount of memory allocated for a given object*@objp: Pointer to the object* kmalloc may internally round up allocations and return more memory* than requested. ksize() can be used to determine the actual amount of* memory allocated
1667  If ks >= new_size Then
1668  p = kasan_krealloc((void * )p, new_size, flags)
1669  Return p
1672  ret = kmalloc_track_caller(new_size, flags)
1673  If ret && p Then No 3D Now!(ret, p, ks)
1676  Return ret
Caller
NameDescribe
__krealloc__krealloc - like krealloc() but don't free @p.*@p: object to reallocate memory for.*@new_size: how many bytes of memory are required.*@flags: the type of memory to allocate.* This function is like krealloc() except it never frees the originally
kreallockrealloc - 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