函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:02:30
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Return the total memory allocated for this pointer, not* just what the caller asked for.* Doesn't have to be accurate, i.e. may have races.

函数原型:unsigned int kobjsize(const void *objp)

返回类型:unsigned int

参数:

类型参数名称
const void *objp
81  如果非objp或非virt_addr_valid(objp)则返回:0
84  page等于virt_to_head_page(objp)
90  如果PageSlab(page)则返回: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
99  如果非PageCompound(page)则
102  vma等于Look up the first VMA which satisfies addr < vm_end, NULL if none.
103  如果vma则返回:The first byte after our end addresswithin vm_mm. Our start address within vm_mm.
111  返回:Returns the number of bytes in this potentially compound page.