Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page | |
| unsigned int | obj_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 |
| Name | Describe |
|---|---|
| obj_malloc |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |