函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zsmalloc.c Create Date:2022-07-27 18:02:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__zs_unmap_object

函数原型:static void __zs_unmap_object(struct mapping_area *area, struct page *pages[2], int off, int size)

返回类型:void

参数:

类型参数名称
struct mapping_area *area
struct page *pages
intoff
intsize
1212  如果 mapping mode 恒等于ad-only (no copy-out at unmap time) 则转到:out
1215  buf等于 copy buffer for objects that span pages
1216  buf等于bufZS_HANDLE_SIZE
1217  size减等于ZS_HANDLE_SIZE
1218  off加等于ZS_HANDLE_SIZE
1220  sizes[0]等于PAGE_SIZEoff
1221  sizes[1]等于sizesizes[0]
1224  addr等于kmap_atomic(pages[0])
1225  memcpy(addr + off, buf, sizes[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])
1228  memcpy(addr, buf + sizes[0], sizes[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()
调用者
名称描述
zs_unmap_object