Function report |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-28 16:28:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Find alloced object in zspage from index object and* return handle.
Proto:static unsigned long find_alloced_obj(struct size_class *class, struct page *page, int *obj_idx)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct size_class * | class | |
| struct page * | page | |
| int * | obj_idx |
| 1656 | offset = 0 |
| 1658 | handle = 0 |
| 1659 | addr = kmap_atomic(page) |
| 1661 | offset = get_first_obj_offset(page) |
| 1665 | head = obj_to_head(page, addr + offset) |
| 1668 | If trypin_tag(handle) Then Break |
| 1670 | handle = 0 |
| 1674 | index++ |
| 1677 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(addr) |
| 1681 | Return handle |
| Name | Describe |
|---|---|
| migrate_zspage |
| 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 |