函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:string_stream_fragment_init

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

返回类型:int

参数:

类型参数名称
struct kunit_resource *res
void *context
23  ctx等于context
26  frag等于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.
27  如果非frag则返回:负ENOMEM
30  test等于test
31  fragment等于kunit_kmalloc(test, len, gfp)
32  如果非fragment则返回:负ENOMEM
35  allocation等于frag
37  返回:0