函数逻辑报告 |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-27 18:02:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:zs_object_copy
函数原型:static void zs_object_copy(struct size_class *class, unsigned long dst, unsigned long src)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct size_class * | class | |
unsigned long | dst | |
unsigned long | src |
1593 | written等于0 |
1600 | s_off等于* Size of objects stored in this class. Must be multiple * of ZS_ALIGN.乘s_objidx按位与PAGE_MASK的反 |
1601 | d_off等于* Size of objects stored in this class. Must be multiple * of ZS_ALIGN.乘d_objidx按位与PAGE_MASK的反 |
1603 | 如果s_off加* Size of objects stored in this class. Must be multiple * of ZS_ALIGN.大于PAGE_SIZE则s_size等于PAGE_SIZE减s_off |
1606 | 如果d_off加* Size of objects stored in this class. Must be multiple * of ZS_ALIGN.大于PAGE_SIZE则d_size等于PAGE_SIZE减d_off |
1609 | s_addr等于kmap_atomic(s_page) |
1610 | d_addr等于kmap_atomic(d_page) |
1612 | 当1循环 |
1626 | 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.(d_addr) |
1627 | 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.(s_addr) |
1628 | s_page等于get_next_page(s_page) |
1629 | s_addr等于kmap_atomic(s_page) |
1630 | d_addr等于kmap_atomic(d_page) |
1632 | s_off等于0 |
1644 | 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.(d_addr) |
1645 | 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.(s_addr) |
名称 | 描述 |
---|---|
migrate_zspage |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |