函数逻辑报告 |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-27 12:46:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:kdb_register_flags
函数原型:int kdb_register_flags(char *cmd, kdb_func_t func, char *usage, char *help, short minlen, kdb_cmdflags_t flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| char * | cmd | |
| kdb_func_t | func | |
| char * | usage | |
| char * | help | |
| short | minlen | |
| kdb_cmdflags_t | flags |
| 2672 | 如果Command name 且字符串比较恒等于0则 |
| 2673 | kdb_printf("Duplicate kdb command registered: %s, func %px help %s\n", cmd, func, help) |
| 2675 | 返回:1 |
| 2683 | 如果(Command name == NULL)则退出 |
| 2687 | 如果i大于等于kdb_max_commands则 |
| 2693 | 如果非new则 |
| 2694 | kdb_printf("Could not allocate new kdb_command table\n") |
| 2696 | 返回:1 |
| 2699 | 内存复制(new, kdb_commands describes the available commands. , (kdb_max_commands - KDB_BASE_CMD_MAX) * new的长度) |
| 2703 | memset(new + kdb_max_commands - KDB_BASE_CMD_MAX, 0, arbitrary * new的长度) |
| 2707 | kdb_max_commands加等于arbitrary |
| 2710 | Command name 等于cmd |
| 2711 | Function to execute command 等于func |
| 2715 | Command behaviour flags 等于flags |
| 2717 | 返回:0 |
| 名称 | 描述 |
|---|---|
| kdb_defcmd2 | |
| kdb_register | kdb_register - Compatibility register function for commands that do* not need to specify a repeat state |
| kdb_inittab | Initialize the kdb command table. |
| kdb_initbptab | Initialize the breakpoint table and register breakpoint commands. |
| kdb_ftrace_register |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |