函数逻辑报告 |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-27 18:02:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:obj_malloc
函数原型:static unsigned long obj_malloc(struct size_class *class, struct zspage *zspage, unsigned long handle)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct size_class * | class | |
struct zspage * | zspage | |
unsigned long | handle |
1419 | obj等于get_freeobj(zspage) |
1424 | m_page等于get_first_page(zspage) |
1429 | vaddr等于kmap_atomic(m_page) |
1435 | 否则 Our offset within mapping. 等于handle |
1439 | 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.(vaddr) |
1440 | mod_zspage_inuse(zspage, 1) |
1443 |
obj等于location_to_obj - get obj value encoded from ( |
1445 | 返回:obj |
名称 | 描述 |
---|---|
zs_malloc | zs_malloc - Allocate block of given size from pool.*@pool: pool to allocate from*@size: size of block to allocate*@gfp: gfp flags when allocating object* On success, handle to the allocated object is returned,* otherwise 0. |
migrate_zspage |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |