函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:52:13 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_file_read_avail - boolean, are there unconsumed bytes available?
函数原型:static int relay_file_read_avail(struct rchan_buf *buf, size_t read_pos)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rchan_buf * | buf | |
size_t | read_pos |
996 | subbuf_size等于 sub-buffer size |
1011 | 如果此条件成立可能性小(为编译器优化)(produced - consumed >= n_subbufs)则 |
1014 | ytes consumed in cur read subbuf 等于0 |
1020 | 如果consumed大于produced则produced加等于n_subbufs乘subbuf_size |
1024 | 如果current offset into sub-buffer 恒等于subbuf_size且count of sub-buffers produced 大于count of sub-buffers consumed 则返回:1 |
1027 | 返回:0 |
1030 | 返回:1 |
名称 | 描述 |
---|---|
relay_file_read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |