函数逻辑报告 | 
Source Code:fs\coredump.c | 
Create Date:2022-07-29 11:06:09 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:rmat_corename will inspect the pattern parameter, and output a* name into corename, which must have space for at least* CORENAME_MAX_SIZE bytes plus one byte for the zero terminator.
函数原型:static int format_corename(struct core_name *cn, struct coredump_params *cprm, size_t **argv, int *argc)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct core_name * | cn | |
| struct coredump_params * | cprm | |
| size_t ** | argv | |
| int * | argc | 
| 194 | cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() | 
| 195 | pat_ptr等于core_pattern | 
| 197 | bool was_space = false | 
| 198 | pid_in_pattern等于0 | 
| 199 | err等于0 | 
| 201 | used等于0 | 
| 202 | corename = NULL | 
| 205 | corename[0]等于'\0' | 
| 207 | 如果ispipe则 | 
| 223 | 如果ispipe则 | 
| 228 | 否则如果was_space则 | 
| 236 | 如果pat_ptr不等于'%'则 | 
| 238 | 否则 | 
| 241 | 当:* == 0 | 
| 242 | 转到:out | 
| 244 | 当:* == '%' | 
| 248 | 当:* == 'p' | 
| 254 | 当:* == 'P' | 
| 258 | 当:* == 'i' | 
| 262 | 当:* == 'I' | 
| 267 | 当:* == 'u' | 
| 271 | 退出 | 
| 273 | 当:* == 'g' | 
| 277 | 退出 | 
| 278 | 当:* == 'd' | 
| 281 | 退出 | 
| 283 | 当:* == 's' | 
| 288 | 当:* == 't' | 
| 296 | 当:* == 'h' | 
| 303 | 当:* == 'e' | 
| 304 | err等于cn_esc_printf(cn, "%s", comm) | 
| 305 | 退出 | 
| 306 | 当:* == 'E' | 
| 307 | err等于cn_print_exe_file(cn) | 
| 308 | 退出 | 
| 310 | 当:* == 'c' | 
| 314 | 默认 | 
| 315 | 退出 | 
| 317 | pat_ptr先自加 | 
| 324 | out : | 
| 330 | 如果非ispipe且非pid_in_pattern且core_uses_pid则 | 
| 335 | 返回:ispipe | 
| 名称 | 描述 | 
|---|---|
| do_coredump | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |