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:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kunit_resource_test_cleanup_resources

Proto:static void kunit_resource_test_cleanup_resources(struct kunit *test)

Type:void

Parameter:

TypeParameterName
struct kunit *test
184  ctx = priv
187  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(resources) cycle
188  resources[i] = kunit_alloc_and_get_resource( & test, fake_resource_init, fake_resource_free, GFP_KERNEL, ctx)
195  kunit_cleanup( & test)
197  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, list_empty - tests whether a list is empty*@head: the list to test.)