函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:52:15 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_file_read_subbuf_avail - return bytes available in sub-buffer*@read_pos: file read position*@buf: relay channel buffer
函数原型:static size_t relay_file_read_subbuf_avail(size_t read_pos, struct rchan_buf *buf)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
size_t | read_pos | |
struct rchan_buf * | buf |
1041 | avail等于0 |
1043 | subbuf_size等于 sub-buffer size |
1046 | write_offset等于如果current offset into sub-buffer 大于subbuf_size则subbuf_size否则current offset into sub-buffer |
1047 | read_subbuf等于read_pos除subbuf_size |
1048 | read_offset等于read_pos取模subbuf_size |
1051 | 如果read_subbuf恒等于write_subbuf则 |
1054 | 否则avail等于subbuf_size减padding减read_offset |
1057 | 返回:avail |
名称 | 描述 |
---|---|
relay_file_read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |