函数逻辑报告 |
Source Code:lib\test_xarray.c |
Create Date:2022-07-27 07:31:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:check_xa_alloc_1
函数原型:static noinline void check_xa_alloc_1(struct xarray *xa, unsigned int base)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct xarray * | xa | |
| unsigned int | base |
| 654 | XA_BUG_ON(xa, !xa_empty() - Determine if an array has any present entries.*@xa: XArray.* Context: Any context.* Return: %true if the array contains only NULL pointers.) |
| 656 | xa_alloc_index(xa, base, GFP_KERNEL) |
| 659 | xa_erase_index(xa, base) |
| 660 | XA_BUG_ON(xa, !xa_empty() - Determine if an array has any present entries.*@xa: XArray.* Context: Any context.* Return: %true if the array contains only NULL pointers.) |
| 663 | xa_alloc_index(xa, base, GFP_KERNEL) |
| 666 | 以i小于2乘XA_CHUNK_SIZE循环xa_alloc_index(xa, i, GFP_KERNEL) |
| 668 | 以i小于2乘XA_CHUNK_SIZE循环xa_erase_index(xa, i) |
| 670 | xa_alloc_index(xa, base, GFP_KERNEL) |
| 676 | xa_alloc_index(xa, base, GFP_KERNEL) |
| 679 | xa_alloc_index(xa, base + 1, GFP_KERNEL) |
| 680 | xa_erase_index(xa, base + 1) |
| 683 | xa_store_index(xa, base + 1, GFP_KERNEL) |
| 684 | xa_alloc_index(xa, base + 2, GFP_KERNEL) |
| 687 | xa_erase_index(xa, base) |
| 688 | xa_alloc_index(xa, base, GFP_KERNEL) |
| 690 | xa_erase_index(xa, base + 1) |
| 691 | xa_erase_index(xa, base + 2) |
| 694 | xa_alloc_index(xa, base + i, GFP_KERNEL) |
| 700 | XA_BUG_ON(xa, xa_alloc(xa, & id, xa_mk_index(UINT_MAX - 1), XA_LIMIT(UINT_MAX - 1, UINT_MAX), GFP_KERNEL) != 0) |
| 704 | XA_BUG_ON(xa, xa_alloc(xa, & id, xa_mk_index(UINT_MAX), XA_LIMIT(UINT_MAX - 1, UINT_MAX), GFP_KERNEL) != 0) |
| 708 | id等于3 |
| 709 | XA_BUG_ON(xa, xa_alloc(xa, & id, xa_mk_index(0), XA_LIMIT(UINT_MAX - 1, UINT_MAX), GFP_KERNEL) != - EBUSY) |
| 715 | XA_BUG_ON(xa, xa_alloc(xa, & id, xa_mk_index(10), XA_LIMIT(10, 5), GFP_KERNEL) != - EBUSY) |
| 717 | XA_BUG_ON(xa, xa_store_index(xa, 3, GFP_KERNEL) != 0) |
| 718 | XA_BUG_ON(xa, xa_alloc(xa, & id, xa_mk_index(10), XA_LIMIT(10, 5), GFP_KERNEL) != - EBUSY) |
| 720 | xa_erase_index(xa, 3) |
| 721 | XA_BUG_ON(xa, !xa_empty() - Determine if an array has any present entries.*@xa: XArray.* Context: Any context.* Return: %true if the array contains only NULL pointers.) |
| 名称 | 描述 |
|---|---|
| check_xa_alloc |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |