函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-29 11:06:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cn_esc_printf

函数原型:static __printf(2, 3) int cn_esc_printf(struct core_name *cn, const char *fmt, ...)

返回类型:int

参数:

类型参数名称
struct core_name *cn
const char *fmt
121  cur等于used
125  va_start(arg, fmt)
126  ret等于cn_vprintf(cn, fmt, arg)
127  va_end(arg)
129  如果ret恒等于0则
134  如果usedcur恒等于1且corename[cur]恒等于'.'或usedcur恒等于2且corename[cur]恒等于'.'且corename[cur + 1]恒等于'.'则corename[cur]等于'!'
145  如果used恒等于curret等于cn_printf(cn, "!")
149 cur小于used循环
150  如果corename[cur]恒等于'/'则corename[cur]等于'!'
153  返回:ret
调用者
名称描述
cn_print_exe_file
format_corenamermat_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.