函数逻辑报告 |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-27 11:05:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check whether there is enough free space for the given message.* The same values of first_idx and next_idx mean that the buffer* is either empty or full.* If the buffer is empty, we must respect the position of the indexes.
函数原型:static int logbuf_has_space(unsigned int msg_size, bool empty)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | msg_size | |
bool | empty |
532 | 如果log_next_idx大于log_first_idx或empty则free等于两数取大(log_buf_len - log_next_idx, log_first_idx) |
534 | 否则free等于log_first_idx减log_next_idx |
541 | 返回:free大于等于msg_size加sizeof(structprintk_log) |
名称 | 描述 |
---|---|
log_make_free_space |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |