函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_xarray.c Create Date:2022-07-27 07:31:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_xa_alloc_2

函数原型:static noinline void check_xa_alloc_2(struct xarray *xa, unsigned int base)

返回类型:void

参数:

类型参数名称
struct xarray *xa
unsigned intbase
731  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.)
732  XA_BUG_ON(xa, xa_alloc(xa, & id, NULL, xa_limit_32b, GFP_KERNEL) != 0)
733  XA_BUG_ON(xa, id != base)
734  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.)
735  XA_BUG_ON(xa, xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased != NULL)
736  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.)
739  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.)
740  XA_BUG_ON(xa, xa_alloc(xa, & id, NULL, xa_limit_32b, GFP_KERNEL) != 0)
741  XA_BUG_ON(xa, id != base)
742  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.)
743  xa_destroy() - Free all internal data structures.*@xa: XArray.* After calling this function, the XArray is empty and has freed all memory* allocated for its internal data structures. You are responsible for* freeing the objects referenced by the XArray.
744  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.)
746 i小于base加10循环
747  XA_BUG_ON(xa, xa_alloc(xa, & id, NULL, xa_limit_32b, GFP_KERNEL) != 0)
749  XA_BUG_ON(xa, id != i)
752  XA_BUG_ON(xa, xa_store() - Store this entry in the XArray.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* After this function returns, loads from this index will return @entry. != NULL)
753  XA_BUG_ON(xa, xa_store() - Store this entry in the XArray.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* After this function returns, loads from this index will return @entry. != NULL)
754  XA_BUG_ON(xa, xa_store() - Store this entry in the XArray.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* After this function returns, loads from this index will return @entry. != xa_mk_index(4))
755  XA_BUG_ON(xa, xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased != NULL)
756  XA_BUG_ON(xa, xa_alloc(xa, & id, NULL, xa_limit_32b, GFP_KERNEL) != 0)
757  XA_BUG_ON(xa, id != 5)
759  xa_for_each() - Iterate over present entries in an XArray.*@xa: XArray.*@index: Index of @entry.*@entry: Entry retrieved from array.* During the iteration, @entry will have the value of the entry stored* in @xa at @index(xa, index, entry)
760  xa_erase_index(xa, index)
763 i小于base加9循环
764  XA_BUG_ON(xa, xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased != NULL)
765  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.)
767  XA_BUG_ON(xa, xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased != NULL)
768  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.)
769  XA_BUG_ON(xa, xa_erase() - Erase this entry from the XArray.*@xa: XArray.*@index: Index of entry.* After this function returns, loading from @index will return %NULL.* If the index is part of a multi-index entry, all indices will be erased != NULL)
770  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.)
772  xa_destroy() - Free all internal data structures.*@xa: XArray.* After calling this function, the XArray is empty and has freed all memory* allocated for its internal data structures. You are responsible for* freeing the objects referenced by the XArray.
调用者
名称描述
check_xa_alloc