| 函数逻辑报告 | 
| Source Code: mm\z3fold.c | Create Date:2022-07-27 18:04:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Initializes the z3fold header of a newly allocated z3fold page
函数原型:static struct z3fold_header *init_z3fold_page(struct page *page, bool headless, struct z3fold_pool *pool, gfp_t gfp)
返回类型:struct z3fold_header
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | page | |
| bool | headless | |
| struct z3fold_pool * | pool | |
| gfp_t | gfp | 
| 401 | zhdr等于page_address(page) | 
| 404 | 初始化链表头 | 
| 413 | slots等于alloc_slots(pool, gfp) | 
| 414 | 如果非slots则返回:NULL | 
| 417 | spin_lock_init( & page_lock) | 
| 418 | 初始化对象 | 
| 419 | first_chunks等于0 | 
| 420 | middle_chunks等于0 | 
| 421 | last_chunks等于0 | 
| 422 | first_num等于0 | 
| 423 | start_middle等于0 | 
| 424 | cpu等于负1 | 
| 425 | foreign_handles等于0 | 
| 428 | 初始化链表头 | 
| 429 | INIT_WORK( & work, compact_page_work) | 
| 430 | 返回:zhdr | 
| 名称 | 描述 | 
|---|---|
| z3fold_alloc | z3fold_alloc() - allocates a region of a given size*@pool: z3fold pool from which to allocate*@size: size in bytes of the desired allocation*@gfp: gfp flags used if the pool needs to grow*@handle: handle of the new allocation* This function will attempt | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |