Function report |
Source Code:kernel\relay.c |
Create Date:2022-07-28 11:47:12 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lay_switch_subbuf - switch to a new sub-buffer*@buf: channel buffer*@length: size of current event* Returns either the length passed in or 0 if full.* Performs sub-buffer-switch tasks such as invoking callbacks,
Proto:size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length)
Type:size_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct rchan_buf * | buf | |
size_t | length |
746 | If Value for the false possibility is greater at compile time(length > sub-buffer size ) Then Go to toobig |
749 | If current offset into sub-buffer != sub-buffer size + 1 Then |
754 | If channel file dentry Then i_size += sub-buffer size - padding counts per sub-buffer [old_subbuf] |
758 | Else ytes consumed before VFS inited += sub-buffer size - padding counts per sub-buffer [old_subbuf] |
761 | smp_mb() |
769 | irq_work_queue( & ader wakeup ) |
775 | new = start of channel buffer + new_subbuf * sub-buffer size |
776 | current offset into sub-buffer = 0 |
777 | If Not subbuf_start(buf, new, old, mporary variable ) Then |
779 | Return 0 |
782 | padding counts per sub-buffer [new_subbuf] = 0 |
784 | If Value for the false possibility is greater at compile time(length + current offset into sub-buffer > sub-buffer size ) Then Go to toobig |
787 | Return length |
789 | toobig : |
791 | Return 0 |
Name | Describe |
---|---|
relay_flush | lay_flush - close the channel*@chan: the channel* Flushes all channel buffers, i.e. forces buffer switch. |
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 |