Function report |
Source Code:include\kunit\test.h |
Create Date:2022-07-28 06:38:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kunit_alloc_resource() - Allocates a *test managed resource*
Proto:static inline void *kunit_alloc_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, gfp_t internal_gfp, void *context)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kunit * | test | |
| kunit_resource_init_t | init | |
| kunit_resource_free_t | free | |
| gfp_t | internal_gfp | |
| void * | context |
| 260 | res = kunit_alloc_and_get_resource(test, init, free, internal_gfp, context) |
| 263 | If res Then Return allocation |
| 266 | Return NULL |
| Name | Describe |
|---|---|
| kunit_kmalloc | |
| alloc_string_stream_fragment | |
| alloc_string_stream |
| 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 |