函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:45
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:格式化输出字符串

函数原型:int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)

返回类型:int

参数:

类型参数名称
char *buf
size_tsize
const char *fmt
va_listargs
2677  i等于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
2679  如果此条件成立可能性大(为编译器优化)(i < size)则返回:i
2681  如果size不等于0则返回:size减1
2683  返回:0
调用者
名称描述
scnprintf格式化输出字符串
vprintk_storeMust be called under logbuf_lock.
printk_safe_log_storeAdd a message to per-CPU context-dependent buffer
vmcoreinfo_append_str
__trace_array_vprintk
bpf_verifier_vlog
panicpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.