函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:52:01 |
Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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,
函数原型:size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct rchan_buf * | buf | |
size_t | length |
746 | 如果此条件成立可能性小(为编译器优化)(length > sub-buffer size )则转到:toobig |
749 | 如果current offset into sub-buffer 不等于 sub-buffer size 加1则 |
758 | 否则ytes consumed before VFS inited 加等于 sub-buffer size 减padding counts per sub-buffer [old_subbuf] |
761 | smp_mb() |
769 | irq_work_queue( & ader wakeup ) |
776 | current offset into sub-buffer 等于0 |
777 | 如果非subbuf_start(buf, new, old, mporary variable )则 |
779 | 返回:0 |
782 | padding counts per sub-buffer [new_subbuf]等于0 |
784 | 如果此条件成立可能性小(为编译器优化)(length + current offset into sub-buffer > sub-buffer size )则转到:toobig |
787 | 返回:length |
789 | toobig : |
791 | 返回:0 |
名称 | 描述 |
---|---|
relay_flush | lay_flush - close the channel*@chan: the channel* Flushes all channel buffers, i.e. forces buffer switch. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |