函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_store_iter

函数原型:static noinline void check_store_iter(struct xarray *xa)

返回类型:void

参数:

类型参数名称
struct xarray *xa
871  max_order等于如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_XARRAY_MULTI)则20否则1
873 i小于max_order循环
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 j小于min循环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 j小于min循环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.)
调用者
名称描述
xarray_checks