函数逻辑报告 |
Source Code:mm\readahead.c |
Create Date:2022-07-27 15:35:37 |
| Last Modify:2020-03-17 21:13:07 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:read_pages
函数原型:static int read_pages(struct address_space *mapping, struct file *filp, struct list_head *pages, unsigned int nr_pages, gfp_t gfp)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct address_space * | mapping | |
| struct file * | filp | |
| struct list_head * | pages | |
| unsigned int | nr_pages | |
| gfp_t | gfp |
| 123 | blk_start_plug( & plug) |
| 125 | 如果readpages则 |
| 133 | page等于lru_to_page(pages) |
| 134 | 删除链表项 |
| 135 | 如果非add_to_page_cache_lru(page, mapping, Our offset within mapping. , gfp)则readpage(filp, page) |
| 139 | ret等于0 |
| 141 | out : |
| 142 | blk_finish_plug( & plug) |
| 144 | 返回:ret |
| 名称 | 描述 |
|---|---|
| __do_page_cache_readahead | __do_page_cache_readahead() actually reads a chunk of disk. It allocates* the pages first, then submits them for I/O. This avoids the very bad* behaviour which would occur if page allocations are causing VM writeback. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |