函数逻辑报告

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_init

函数原型:static int string_stream_init(struct kunit_resource *res, void *context)

返回类型:int

参数:

类型参数名称
struct kunit_resource *res
void *context
175  ctx等于context
177  stream等于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.
178  如果非stream则返回:负ENOMEM
181  allocation等于stream
182  gfp等于gfp
183  test等于test
184  初始化链表头
185  spin_lock_init( & length and fragments are protected by this lock )
187  返回:0