Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_xarray.c Create Date:2022-07-28 06:33:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_store_iter

Proto:static noinline void check_store_iter(struct xarray *xa)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
871  max_order = If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_XARRAY_MULTI) Then 20 Else 1
873  When i < max_order cycle
874  min = 1 << i
875  max = (2 << i) - 1
876  __check_store_iter(xa, 0, i, 0)
877  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.)
878  __check_store_iter(xa, min, i, 0)
879  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.)
881  xa_store_index(xa, min, GFP_KERNEL)
882  __check_store_iter(xa, min, i, 1)
883  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.)
884  xa_store_index(xa, max, GFP_KERNEL)
885  __check_store_iter(xa, min, i, 1)
886  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.)
888  When j < min cycle xa_store_index(xa, j, GFP_KERNEL)
890  __check_store_iter(xa, 0, i, min)
891  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.)
892  When j < min cycle xa_store_index(xa, min + j, GFP_KERNEL)
894  __check_store_iter(xa, min, i, min)
895  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.)
898  xa_store_index(xa, 63, GFP_KERNEL)
899  xa_store_index(xa, 65, GFP_KERNEL)
900  __check_store_iter(xa, 64, 2, 1)
901  xa_erase_index(xa, 63)
903  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.)
Caller
NameDescribe
xarray_checks