Function report |
Source Code:lib\test_xarray.c |
Create Date:2022-07-28 06:33:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_xa_alloc_3
Proto:static noinline void check_xa_alloc_3(struct xarray *xa, unsigned int base)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct xarray * | xa | |
unsigned int | base |
778 | next = 0 |
783 | XA_BUG_ON(xa, xa_alloc_cyclic(xa, & id, xa_mk_index(1), limit, & next, GFP_KERNEL) != 0) |
787 | next = 0x3ffd |
788 | XA_BUG_ON(xa, xa_alloc_cyclic(xa, & id, xa_mk_index(0x3ffd), limit, & next, GFP_KERNEL) != 0) |
791 | xa_erase_index(xa, 0x3ffd) |
792 | xa_erase_index(xa, 1) |
793 | 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.) |
796 | If i < 0x4000 Then entry = xa_mk_index(i) |
798 | Else entry = xa_mk_index(i - 0x3fff) |
800 | XA_BUG_ON(xa, xa_alloc_cyclic(xa, & id, entry, limit, & next, GFP_KERNEL) != (id == 1)) |
802 | XA_BUG_ON(xa, xa_mk_index(id) != entry) |
806 | If base != 0 Then xa_erase_index(xa, base) |
808 | xa_erase_index(xa, base + 1) |
810 | XA_BUG_ON(xa, xa_alloc_cyclic(xa, & id, xa_mk_index(UINT_MAX), xa_limit_32b, & next, GFP_KERNEL) != 0) |
813 | XA_BUG_ON(xa, xa_alloc_cyclic(xa, & id, xa_mk_index(base), xa_limit_32b, & next, GFP_KERNEL) != 1) |
816 | XA_BUG_ON(xa, xa_alloc_cyclic(xa, & id, xa_mk_index(base + 1), xa_limit_32b, & next, GFP_KERNEL) != 0) |
821 | xa_erase_index(xa, index) |
823 | 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.) |
Name | Describe |
---|---|
check_xa_alloc |
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 |