Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\test-test.c Create Date:2022-07-28 06:39:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kunit_resource_test_init

Proto:static int kunit_resource_test_init(struct kunit *test)

Type:int

Parameter:

TypeParameterName
struct kunit *test
296  ctx = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
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  Return 0