Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cn_vprintf

Proto:static __printf(2, 0) int cn_vprintf(struct core_name *cn, const char *fmt, va_list arg)

Type:int

Parameter:

TypeParameterName
struct core_name *cn
const char *fmt
va_listarg
88  again :
89  free = size - used
91  va_copy(arg_copy, arg)
92  need = vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
93  va_end(arg_copy)
95  If need < free Then
96  used += need
97  Return 0
100  If Not The maximal length of core_pattern is also specified in sysctl.c Then Go to again
103  Return -ENOMEM
Caller
NameDescribe
cn_printf
cn_esc_printf