函数逻辑报告 |
Source Code:mm\zsmalloc.c |
Create Date:2022-07-27 18:02:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Allocate a zspage for the given size class
函数原型:static struct zspage *alloc_zspage(struct zs_pool *pool, struct size_class *class, gfp_t gfp)
返回类型:struct zspage
参数:
类型 | 参数 | 名称 |
---|---|---|
struct zs_pool * | pool | |
struct size_class * | class | |
gfp_t | gfp |
1069 | zspage等于cache_alloc_zspage(pool, gfp) |
1071 | 如果非zspage则返回:NULL |
1075 | magic等于ZSPAGE_MAGIC |
1076 | migrate_lock_init(zspage) |
1081 | page等于alloc_page(gfp) |
1082 | 如果非page则 |
1084 | dec_zone_page_state(pages[i], allocated in zsmalloc ) |
1085 | __free_page(pages[i]) |
1087 | cache_free_zspage(pool, zspage) |
1088 | 返回:NULL |
1095 | create_page_chain(class, zspage, pages) |
1098 | 返回:zspage |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |