函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kunit_resource_test_destroy_resource

函数原型:static void kunit_resource_test_destroy_resource(struct kunit *test)

返回类型:void

参数:

类型参数名称
struct kunit *test
163  ctx等于priv
164  res等于kunit_alloc_and_get_resource( & test, fake_resource_init, fake_resource_free, GFP_KERNEL, ctx)
171  KUNIT_ASSERT_FALSE() - Sets an assertion that @condition is false(test, kunit_resource_destroy( & test, kunit_resource_instance_match() - Match a resource with the same instance, free, allocation))
177  KUNIT_EXPECT_FALSE() - Makes a test failure when the expression is not false.*@test: The test context object.*@condition: an arbitrary boolean expression. The test fails when this does* not evaluate to false.(test, is_resource_initialized)
178  KUNIT_EXPECT_TRUE() - Causes a test failure when the expression is not true(test, 链表为空)