函数逻辑报告 | 
Source Code:fs\ramfs\file-nommu.c | 
Create Date:2022-07-29 11:11:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:add a contiguous set of pages into a ramfs inode when it's truncated from* size 0 on the assumption that it's going to be used for an mmap of shared* memory
函数原型:int ramfs_nommu_expand_for_mapping(struct inode *inode, size_t newsize)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct inode * | inode | |
| size_t | newsize | 
| 69 | gfp等于mapping_gfp_mask(i_mapping) | 
| 72 | order等于get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory | 
| 76 | ret等于de_newsize_ok - may this inode be truncated to a given size*@inode: the inode to be truncated*@offset: the new size to assign to the inode* inode_newsize_ok must be called with i_mutex held | 
| 84 | pages等于alloc_pages(gfp, order) | 
| 100 | data等于page_address(pages) | 
| 113 | SetPageDirty(page) | 
| 114 | SetPageUptodate(page) | 
| 120 | 返回:0 | 
| 122 | add_error : | 
| 124 | __free_page(pages + loop++) | 
| 125 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| ramfs_nommu_resize | |
| __shmem_file_setup | mmon code | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |