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_multi_find_1

Proto:static noinline void check_multi_find_1(struct xarray *xa, unsigned order)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
unsignedorder
909  multi = 3 << order
910  next = 4 << order
913  If anyone needs this, please move it to xarray.c. We have no current* users outside the test suite because all current multislot users want* to use the advanced API.
914  XA_BUG_ON(xa, xa_store_index(xa, next, GFP_KERNEL) != NULL)
915  XA_BUG_ON(xa, xa_store_index(xa, next + 1, GFP_KERNEL) != NULL)
917  index = 0
918  XA_BUG_ON(xa, xa_find() - Search the XArray for an entry.*@xa: XArray.*@indexp: Pointer to an index.*@max: Maximum index to search to.*@filter: Selection criterion.* Finds the entry in @xa which matches the @filter, and has the lowest != xa_mk_value() - Create an XArray entry from an integer.*@v: Value to store in XArray.* Context: Any context.* Return: An entry suitable for storing in the XArray.)
920  XA_BUG_ON(xa, index != multi)
921  index = multi + 1
922  XA_BUG_ON(xa, xa_find() - Search the XArray for an entry.*@xa: XArray.*@indexp: Pointer to an index.*@max: Maximum index to search to.*@filter: Selection criterion.* Finds the entry in @xa which matches the @filter, and has the lowest != xa_mk_value() - Create an XArray entry from an integer.*@v: Value to store in XArray.* Context: Any context.* Return: An entry suitable for storing in the XArray.)
924  XA_BUG_ON(xa, (index < multi) || (index >= next))
925  XA_BUG_ON(xa, xa_find_after() - Search the XArray for a present entry.*@xa: XArray.*@indexp: Pointer to an index.*@max: Maximum index to search to.*@filter: Selection criterion.* Finds the entry in @xa which matches the @filter and has the lowest != xa_mk_value() - Create an XArray entry from an integer.*@v: Value to store in XArray.* Context: Any context.* Return: An entry suitable for storing in the XArray.)
927  XA_BUG_ON(xa, index != next)
928  XA_BUG_ON(xa, xa_find_after() - Search the XArray for a present entry.*@xa: XArray.*@indexp: Pointer to an index.*@max: Maximum index to search to.*@filter: Selection criterion.* Finds the entry in @xa which matches the @filter and has the lowest != NULL)
929  XA_BUG_ON(xa, index != next)
931  xa_erase_index(xa, multi)
932  xa_erase_index(xa, next)
933  xa_erase_index(xa, next + 1)
934  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
check_find