Function report |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-28 16:27:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:zs_unmap_object
Proto:void zs_unmap_object(struct zs_pool *pool, unsigned long handle)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct zs_pool * | pool | |
| unsigned long | handle |
| 1362 | obj = handle_to_obj(handle) |
| 1364 | zspage = get_zspage(page) |
| 1365 | get_zspage_mapping(zspage, & class_idx, & fg) |
| 1366 | class = size_class[class_idx] |
| 1367 | off = * Size of objects stored in this class. Must be multiple * of ZS_ALIGN. * obj_idx & ~PAGE_MASK |
| 1369 | area = this_cpu_ptr( & per-cpu VM mapping areas for zspage accesses that cross page boundaries ) |
| 1372 | Else |
| 1376 | pages[1] = get_next_page(page) |
| 1381 | The weird & is necessary because sparse considers (void)(var) to be* a direct dereference of percpu variable (var).(per-cpu VM mapping areas for zspage accesses that cross page boundaries ) |
| 1383 | migrate_read_unlock(zspage) |
| Name | Describe |
|---|---|
| zs_zpool_unmap |
| 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 |