Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-28 14:36:23
Last Modify:2020-03-17 21:26:27 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:unsigned int kobjsize(const void *objp)

Type:unsigned int

Parameter:

TypeParameterName
const void *objp
81  If Not objp || Not virt_addr_valid(objp) Then Return 0
84  page = virt_to_head_page(objp)
90  If PageSlab(page) Then Return 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  If Not PageCompound(page) Then
102  vma = Look up the first VMA which satisfies addr < vm_end, NULL if none.
103  If vma Then Return The first byte after our end addresswithin vm_mm. - Our start address within vm_mm.
111  Return Returns the number of bytes in this potentially compound page.