Function report |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-28 16:27:23 |
| 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:static void __zs_unmap_object(struct mapping_area *area, struct page *pages[2], int off, int size)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mapping_area * | area | |
| struct page * | pages | |
| int | off | |
| int | size |
| 1212 | If mapping mode == ad-only (no copy-out at unmap time) Then Go to out |
| 1216 | buf = buf + ZS_HANDLE_SIZE |
| 1217 | size -= ZS_HANDLE_SIZE |
| 1218 | off += ZS_HANDLE_SIZE |
| 1224 | addr = kmap_atomic(pages[0]) |
| 1226 | 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) |
| 1227 | addr = kmap_atomic(pages[1]) |
| 1229 | 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) |
| 1231 | out : |
| 1233 | pagefault_enable() |
| Name | Describe |
|---|---|
| zs_unmap_object |
| 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 |