Function report |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-28 16:27:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize a newly allocated zspage
Proto:static void init_zspage(struct size_class *class, struct zspage *zspage)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct size_class * | class | |
struct zspage * | zspage |
985 | freeobj = 1 |
986 | off = 0 |
987 | page = get_first_page(zspage) |
994 | set_first_obj_offset(page, off) |
996 | vaddr = kmap_atomic(page) |
1001 | link += * Size of objects stored in this class. Must be multiple * of ZS_ALIGN. / size of link |
1009 | next_page = get_next_page(page) |
1010 | If next_page Then |
1012 | Else |
1024 | set_freeobj(zspage, 0) |
Name | Describe |
---|---|
alloc_zspage | Allocate a zspage for the given size class |
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 |