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:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:string_stream_get_string

Proto:char *string_stream_get_string(struct string_stream *stream)

Type:char

Parameter:

TypeParameterName
struct string_stream *stream
134  buf_len = length + 1
137  buf = kunit_kzalloc() - Just like kunit_kmalloc(), but zeroes the allocation.*@test: The test context object.*@size: The size in bytes of the desired memory.*@gfp: flags passed to underlying kmalloc().* See kzalloc() and kunit_kmalloc() for more information.
138  If Not buf Then Return NULL
141  spin_lock( & length and fragments are protected by this lock )
142  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(frag_container, & fragments, node)
143  strlcat - Append a length-limited, C-string to another*@dest: The string to be appended to*@src: The string to append to it*@count: The size of the destination buffer.
144  spin_unlock( & length and fragments are protected by this lock )
146  Return buf
Caller
NameDescribe
string_stream_append
string_stream_test_get_string
kunit_print_string_stream