函数逻辑报告

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_vprintf

函数原型:static __printf(2, 0) int cn_vprintf(struct core_name *cn, const char *fmt, va_list arg)

返回类型:int

参数:

类型参数名称
struct core_name *cn
const char *fmt
va_listarg
88  again :
89  free等于sizeused
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  如果need小于free
96  used加等于need
97  返回:0
100  如果非The maximal length of core_pattern is also specified in sysctl.c 则转到:again
103  返回:负ENOMEM
调用者
名称描述
cn_printf
cn_esc_printf