函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:52:10 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_file_read_consume - update the consumed count for the buffer
函数原型:static void relay_file_read_consume(struct rchan_buf *buf, size_t read_pos, size_t bytes_consumed)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rchan_buf * | buf | |
size_t | read_pos | |
size_t | bytes_consumed |
964 | subbuf_size等于 sub-buffer size |
968 | 如果count of sub-buffers produced 恒等于count of sub-buffers consumed 且current offset into sub-buffer 恒等于ytes consumed in cur read subbuf 则返回 |
974 | ytes consumed in cur read subbuf 等于0 |
980 | 否则read_subbuf等于read_pos除 sub-buffer size |
983 | 如果read_subbuf恒等于count of sub-buffers produced 取模n_subbufs且current offset into sub-buffer 恒等于subbuf_size则返回 |
987 | ytes consumed in cur read subbuf 等于0 |
名称 | 描述 |
---|---|
relay_file_read_avail | lay_file_read_avail - boolean, are there unconsumed bytes available? |
relay_file_read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |