函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:20:23
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__ksize -- Uninstrumented ksize

函数原型:size_t __ksize(const void *objp)

返回类型:size_t

参数:

类型参数名称
const void *objp
4270  BUG_ON(!objp)
4271  如果此条件成立可能性小(为编译器优化)(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.)则返回:0
4274  c等于virt_to_cache(objp)
4275  size等于如果cThe size of an object without metadata 否则0
4277  返回:size