函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:19 |
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Generic "read page" function for block devices that have the normal* get_block functionality
函数原型:int block_read_full_page(struct page *page, get_block_t *get_block)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct page * | page | |
| get_block_t * | get_block |
| 2263 | fully_mapped等于1 |
| 2265 | head等于create_page_buffers(page, inode, 0) |
| 2266 | blocksize等于 size of mapping |
| 2272 | nr等于0 |
| 2273 | i等于0 |
| 2275 | 循环 |
| 2279 | 如果非buffer_mapped(bh)则 |
| 2280 | err等于0 |
| 2282 | fully_mapped等于0 |
| 2284 | WARN_ON( size of mapping != blocksize) |
| 2286 | 如果err则SetPageError(page) |
| 2289 | 如果非buffer_mapped(bh)则 |
| 2305 | 如果fully_mapped则SetPageMappedToDisk(page) |
| 2308 | 如果非nr则 |
| 2313 | 如果非PageError(page)则SetPageUptodate(page) |
| 2316 | 返回:0 |
| 2322 | lock_buffer(bh) |
| 2335 | 否则submit_bh(REQ_OP_READ, 0, bh) |
| 2338 | 返回:0 |
| 名称 | 描述 |
|---|---|
| blkdev_readpage | |
| do_mpage_readpage | This is the worker routine which does all the work of mapping the disk* blocks and constructs largest possible bios, submits them for IO if the* blocks are not contiguous on the disk |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |