Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_cmpxchg

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

Type:void

Parameter:

TypeParameterName
struct xarray *xa
381  FIVE = 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.
382  SIX = 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.
383  LOTS = 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.
385  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.)
386  XA_BUG_ON(xa, xa_store_index(xa, 12345678, GFP_KERNEL) != NULL)
387  XA_BUG_ON(xa, xa_insert() - Store this entry in the XArray unless another entry is* already present.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* Inserting a NULL entry will store a reserved entry (like xa_reserve()) != - EBUSY)
388  XA_BUG_ON(xa, xa_cmpxchg() - Conditionally replace an entry in the XArray.*@xa: XArray.*@index: Index into array.*@old: Old value to test against.*@entry: New value to place in array.*@gfp: Memory allocation flags. != LOTS)
389  XA_BUG_ON(xa, xa_cmpxchg() - Conditionally replace an entry in the XArray.*@xa: XArray.*@index: Index into array.*@old: Old value to test against.*@entry: New value to place in array.*@gfp: Memory allocation flags. != LOTS)
390  XA_BUG_ON(xa, xa_cmpxchg() - Conditionally replace an entry in the XArray.*@xa: XArray.*@index: Index into array.*@old: Old value to test against.*@entry: New value to place in array.*@gfp: Memory allocation flags. != FIVE)
391  XA_BUG_ON(xa, xa_cmpxchg() - Conditionally replace an entry in the XArray.*@xa: XArray.*@index: Index into array.*@old: Old value to test against.*@entry: New value to place in array.*@gfp: Memory allocation flags. != NULL)
392  XA_BUG_ON(xa, xa_cmpxchg() - Conditionally replace an entry in the XArray.*@xa: XArray.*@index: Index into array.*@old: Old value to test against.*@entry: New value to place in array.*@gfp: Memory allocation flags. != NULL)
393  xa_erase_index(xa, 12345678)
394  xa_erase_index(xa, 5)
395  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