Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-28 20:30:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cn_esc_printf

Proto:static __printf(2, 3) int cn_esc_printf(struct core_name *cn, const char *fmt, ...)

Type:int

Parameter:

TypeParameterName
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  If ret == 0 Then
134  If used - cur == 1 && corename[cur] == '.' || used - cur == 2 && corename[cur] == '.' && corename[cur + 1] == '.' Then corename[cur] = '!'
145  If used == cur Then ret = cn_printf(cn, "!")
149  When cur < used cycle
150  If corename[cur] == '/' Then corename[cur] = '!'
153  Return ret
Caller
NameDescribe
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.