函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:52:17 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_file_read_start_pos - find the first available byte to read*@read_pos: file read position*@buf: relay channel buffer* If the @read_pos is in the middle of padding, return the* position of the first actually available byte, otherwise
函数原型:static size_t relay_file_read_start_pos(size_t read_pos, struct rchan_buf *buf)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
size_t | read_pos | |
struct rchan_buf * | buf |
1073 | subbuf_size等于 sub-buffer size |
1079 | read_subbuf等于read_pos除subbuf_size |
1081 | padding_start等于read_subbuf加1的和乘subbuf_size减padding |
1082 | padding_end等于read_subbuf加1的和乘subbuf_size |
1083 | 如果read_pos大于等于padding_start且read_pos小于padding_end则 |
1084 | read_subbuf等于read_subbuf加1的和取模n_subbufs |
1085 | read_pos等于read_subbuf乘subbuf_size |
1088 | 返回:read_pos |
名称 | 描述 |
---|---|
relay_file_read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |