Function report |
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 activity | Download SCCT | Chinese |
Name:kunit_resource_test_alloc_resource
Proto:static void kunit_resource_test_alloc_resource(struct kunit *test)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct kunit * | test |
145 | free = fake_resource_free |
147 | res = kunit_alloc_and_get_resource( & test, fake_resource_init, fake_resource_free, GFP_KERNEL, ctx) |
154 | KUNIT_EXPECT_PTR_EQ() - Expects that pointers @left and @right are equal(test, & is_resource_initialized, (bool * )allocation) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |