函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kunit_resource_test_init

函数原型:static int kunit_resource_test_init(struct kunit *test)

返回类型:int

参数:

类型参数名称
struct kunit *test
296  ctx等于分配内存并置零
299  KUNIT_ASSERT_NOT_ERR_OR_NULL() - Assertion that @ptr is not null and not err.*@test: The test context object.*@ptr: an arbitrary pointer.* Sets an assertion that the value that @ptr evaluates to is not null and not* an errno stored in a pointer(test, ctx)
301  priv等于ctx
303  kunit_init_test( & test, "test_test_context")
305  返回:0