函数逻辑报告 |
Source Code:kernel\relay.c |
Create Date:2022-07-27 12:51:31 |
| Last Modify:2020-03-17 19:20:22 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lay_alloc_buf - allocate a channel buffer*@buf: the buffer struct*@size: total size of the buffer* Returns a pointer to the resulting buffer, %NULL if unsuccessful. The* passed in size will get page aligned, if it isn't already.
函数原型:static void *relay_alloc_buf(struct rchan_buf *buf, size_t *size)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct rchan_buf * | buf | |
| size_t * | size |
| 132 | 如果非array of current buffer pages 则返回:NULL |
| 137 | 如果此条件成立可能性小(为编译器优化)(!array of current buffer pages [i])则转到:depopulate |
| 139 | set_page_private(array of current buffer pages [i], (unsignedlong)buf) |
| 142 | 如果非mem则转到:depopulate |
| 147 | 返回:mem |
| 149 | depopulate : |
| 150 | 以j小于i循环__free_page(array of current buffer pages [j]) |
| 153 | 返回:NULL |
| 名称 | 描述 |
|---|---|
| relay_create_buf | lay_create_buf - allocate and initialize a channel buffer*@chan: the relay channel* Returns channel buffer if successful, %NULL otherwise. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |