Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\string-stream.c Create Date:2022-07-28 06:38:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:string_stream_vadd

Proto:int string_stream_vadd(struct string_stream *stream, const char *fmt, va_list args)

Type:int

Parameter:

TypeParameterName
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  If Not frag_container Then Return -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  spin_lock( & length and fragments are protected by this lock )
97  length += len
98  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
99  spin_unlock( & length and fragments are protected by this lock )
101  Return 0
Caller
NameDescribe
string_stream_add