Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:obj_to_head

Proto:static unsigned long obj_to_head(struct page *page, void *obj)

Type:unsigned long

Parameter:

TypeParameterName
struct page *page
void *obj
877  If Value for the false possibility is greater at compile time(PageHugeObject(page)) Then
878  VM_BUG_ON_PAGE(!is_first_page(page), page)
879  Return Our offset within mapping.
880  Else Return obj
Caller
NameDescribe
find_alloced_objFind alloced object in zspage from index object and* return handle.