函数逻辑报告 |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-27 11:06:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:msg_print_text
函数原型:static size_t msg_print_text(const struct printk_log *msg, bool syslog, bool time, char *buf, size_t size)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct printk_log * | msg | |
bool | syslog | |
bool | time | |
char * | buf | |
size_t | size |
1313 | text_size等于 length of text buffer |
1314 | len等于0 |
1316 | prefix_len等于print_prefix(msg, syslog, time, prefix) |
1318 | 循环 |
1322 | 如果next则 |
1326 | 否则 |
1330 | 如果buf则 |
1331 | 如果prefix_len加text_len加1大于等于size减len则退出 |
1334 | 内存复制(buf + len, prefix, prefix_len) |
1335 | len加等于prefix_len |
1339 | 否则 |
1341 | len加等于prefix_len加text_len加1 |
1347 | 返回:len |
名称 | 描述 |
---|---|
syslog_print | |
syslog_print_all | |
do_syslog | |
console_unlock | sole_unlock - unlock the console system* Releases the console_lock which the caller holds on the console system* and the console driver list.* While the console_lock was held, console output may have been buffered* by printk() |
kmsg_dump_get_line_nolock | kmsg_dump_get_line_nolock - retrieve one kmsg log line (unlocked version)*@dumper: registered kmsg dumper*@syslog: include the "<4>" prefixes*@line: buffer to copy the line to*@size: maximum size of the buffer*@len: length of line placed into buffer* |
kmsg_dump_get_buffer | kmsg_dump_get_buffer - copy kmsg log lines*@dumper: registered kmsg dumper*@syslog: include the "<4>" prefixes*@buf: buffer to copy the line to*@size: maximum size of the buffer*@len: length of line placed into buffer* Start at the end of the kmsg buffer |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |