Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:46:29
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__ksize -- Uninstrumented ksize

Proto:size_t __ksize(const void *objp)

Type:size_t

Parameter:

TypeParameterName
const void *objp
4270  BUG_ON(!objp)
4271  If Value for the false possibility is greater at compile time(objp == 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 0
4274  c = virt_to_cache(objp)
4275  size = If c Then The size of an object without metadata Else 0
4277  Return size