函数逻辑报告 |
Source Code:fs\iomap\seek.c |
Create Date:2022-07-29 11:08:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Seek for SEEK_DATA / SEEK_HOLE in the page cache.* Within unwritten extents, the page cache determines which parts are holes* and which are data: uptodate buffer heads count as data; everything else* counts as a hole.
函数原型:static loff_t page_cache_seek_hole_data(struct inode *inode, loff_t offset, loff_t length, int whence)
返回类型:loff_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| loff_t | offset | |
| loff_t | length | |
| int | whence |
| 78 | end等于DIV_ROUND_UP(offset + length, PAGE_SIZE) |
| 85 | pagevec_init( & pvec) |
| 87 | 循环 |
| 102 | pagevec_release( & pvec) |
| 106 | 如果whence不等于seek to the next hole 则转到:not_found |
| 109 | check_range : |
| 112 | not_found : |
| 114 | out : |
| 115 | pagevec_release( & pvec) |
| 116 | 返回:lastoff |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |