Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:location_to_obj - get obj value encoded from (<page>, <obj_idx>)*@page: page object resides in zspage*@obj_idx: object index

Proto:static unsigned long location_to_obj(struct page *page, unsigned int obj_idx)

Type:unsigned long

Parameter:

TypeParameterName
struct page *page
unsigned intobj_idx
863  obj = page_to_pfn(page) << OBJ_INDEX_BITS
864  obj |= obj_idx & OBJ_INDEX_MASK
865  obj <<= OBJ_TAG_BITS
867  Return obj
Caller
NameDescribe
obj_malloc