函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\string-stream.c Create Date:2022-07-27 07:36:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:string_stream_vadd

函数原型:int string_stream_vadd(struct string_stream *stream, const char *fmt, va_list args)

返回类型:int

参数:

类型参数名称
struct string_stream *stream
const char *fmt
va_listargs
82  va_copy(args_for_counting, args)
85  len等于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 加1
87  va_end(args_for_counting)
89  frag_container等于alloc_string_stream_fragment(test, len, gfp)
92  如果非frag_container则返回:负ENOMEM
95  len等于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
96  加自旋锁
97  length加等于len
98  添加链表项
99  自旋锁解锁
101  返回:0
调用者
名称描述
string_stream_add