函数逻辑报告 |
Source Code:lib\kunit\test.c |
Create Date:2022-07-27 07:36:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:kunit_alloc_and_get_resource
函数原型:struct kunit_resource *kunit_alloc_and_get_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, gfp_t internal_gfp, void *context)
返回类型:struct kunit_resource
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kunit * | test | |
| kunit_resource_init_t | init | |
| kunit_resource_free_t | free | |
| gfp_t | internal_gfp | |
| void * | context |
| 331 | 如果非res则返回:NULL |
| 335 | 如果ret则返回:NULL |
| 339 | 加自旋锁 |
| 340 | 添加链表项 |
| 341 | 自旋锁解锁 |
| 343 | 返回:res |
| 名称 | 描述 |
|---|---|
| kunit_resource_test_alloc_resource | |
| kunit_resource_test_destroy_resource | |
| kunit_resource_test_cleanup_resources | |
| fake_resource_1_init | |
| kunit_resource_test_proper_free_ordering | TODO(brendanhiggins@google.com): replace the arrays that keep track of the* order of allocation and freeing with strict mocks using the IN_SEQUENCE macro* to assert allocation and freeing order when the feature becomes available. |
| kunit_alloc_resource | kunit_alloc_resource() - Allocates a *test managed resource* |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |