函数逻辑报告 | 
Source Code:kernel\debug\kdb\kdb_main.c | 
Create Date:2022-07-27 12:46:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:kdb_dmesg - This function implements the 'dmesg' command to display* the contents of the syslog buffer.* dmesg [lines] [adjust]
函数原型:static int kdb_dmesg(int argc, const char **argv)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| int | argc | |
| const char ** | argv | 
| 2096 | lines等于0 | 
| 2097 | adjust等于0 | 
| 2098 | n等于0 | 
| 2099 | skip等于0 | 
| 2100 | struct kmsg_dumper dumper = {active = 1} | 
| 2104 | 如果argc大于2则返回:KDB_ARGCOUNT | 
| 2106 | 如果argc则 | 
| 2111 | 如果argc大于1则 | 
| 2112 | adjust等于转换字符串为无符号整形 | 
| 2119 | diag等于kdbgetintenv - This function will return the value of an* integer-valued environment variable | 
| 2121 | const char * setargs[] = {"set", "LOGGING", "0"} | 
| 2127 | n自加 | 
| 2129 | 如果lines小于0则 | 
| 2130 | 如果adjust大于等于n则kdb_printf("buffer only contains %d lines, nothing printed\n", n) | 
| 2138 | 否则如果lines大于0则 | 
| 2142 | kdb_printf("buffer only contains %d lines, nothing printed\n", n) | 
| 2145 | 否则如果skip小于0则 | 
| 2151 | 否则 | 
| 2160 | 如果skip则 | 
| 2161 | skip自减 | 
| 2162 | 继续下一循环 | 
| 2166 | 如果KDB_FLAG(CMD_INTERRUPT)则返回:0 | 
| 2169 | kdb_printf("%.*s\n", (int)len - 1, buf) | 
| 2172 | 返回:0 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |