函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:string_stream_get_string

函数原型:char *string_stream_get_string(struct string_stream *stream)

返回类型:char

参数:

类型参数名称
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  如果非buf则返回:NULL
141  加自旋锁
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  长字符串拼接
144  自旋锁解锁
146  返回:buf
调用者
名称描述
string_stream_append
string_stream_test_get_string
kunit_print_string_stream