Function report |
Source Code:kernel\relay.c |
Create Date:2022-07-28 11:47:23 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lay_file_read_avail - boolean, are there unconsumed bytes available?
Proto:static int relay_file_read_avail(struct rchan_buf *buf, size_t read_pos)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct rchan_buf * | buf | |
size_t | read_pos |
996 | subbuf_size = sub-buffer size |
1011 | If Value for the false possibility is greater at compile time(produced - consumed >= n_subbufs) Then |
1014 | ytes consumed in cur read subbuf = 0 |
1017 | produced = produced % n_subbufs * subbuf_size + current offset into sub-buffer |
1018 | consumed = consumed % n_subbufs * subbuf_size + ytes consumed in cur read subbuf |
1020 | If consumed > produced Then produced += n_subbufs * subbuf_size |
1024 | If current offset into sub-buffer == subbuf_size && count of sub-buffers produced > count of sub-buffers consumed Then Return 1 |
1027 | Return 0 |
1030 | Return 1 |
Name | Describe |
---|---|
relay_file_read |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |