函数逻辑报告 |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-29 11:07:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Calculate the range inside the page that we actually need to read.
函数原型:static void iomap_adjust_read_range(struct inode *inode, struct iomap_page *iop, loff_t *pos, loff_t length, unsigned *offp, unsigned *lenp)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct inode * | inode | |
struct iomap_page * | iop | |
loff_t * | pos | |
loff_t | length | |
unsigned * | offp | |
unsigned * | lenp |
92 | block_bits等于i_blkbits |
93 | block_size等于1左移block_bits位 |
94 | poff等于offset_in_page( * pos) |
95 | plen等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - poff, length) |
96 | first等于poff右移block_bits位 |
97 | last等于poff加plen减1右移block_bits位 |
104 | 如果iop则 |
109 | 如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则退出 |
111 | pos加等于block_size |
112 | poff加等于block_size |
113 | plen减等于block_size |
114 | first自加 |
133 | end等于offset_in_page(isize - 1)右移block_bits位 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |