Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_move

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

Type:void

Parameter:

TypeParameterName
struct xarray *xa
1234  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, xa, (1 << 16) - 1)
1237  When i < 1 << 16 cycle XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL)
1240  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1241  Do
1242  entry = xas_prev() - Move iterator to previous index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1243  i--
1244  XA_BUG_ON(xa, entry != xa_mk_index(i))
1245  XA_BUG_ON(xa, i != xa_index)
1246  When i != 0 cycle
1248  XA_BUG_ON(xa, xas_prev() - Move iterator to previous index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked, != NULL)
1249  XA_BUG_ON(xa, xa_index != ULONG_MAX)
1251  Do
1252  entry = xas_next() - Move state to next index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1253  XA_BUG_ON(xa, entry != xa_mk_index(i))
1254  XA_BUG_ON(xa, i != xa_index)
1255  i++
1256  When i < 1 << 16 cycle
1257  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1259  When i < 1 << 15 cycle xa_erase_index(xa, i)
1262  i = xa_index
1264  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1265  Do
1266  entry = xas_prev() - Move iterator to previous index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1267  i--
1268  If i < 1 << 8 || i >= 1 << 15 Then XA_BUG_ON(xa, entry != xa_mk_index(i))
1270  Else XA_BUG_ON(xa, entry != NULL)
1272  XA_BUG_ON(xa, i != xa_index)
1273  When i != 0 cycle
1275  XA_BUG_ON(xa, xas_prev() - Move iterator to previous index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked, != NULL)
1276  XA_BUG_ON(xa, xa_index != ULONG_MAX)
1278  Do
1279  entry = xas_next() - Move state to next index.*@xas: XArray operation state.* If the @xas was in an error state, it will remain in an error state* and this function will return %NULL. If the @xas has never been walked,
1280  If i < 1 << 8 || i >= 1 << 15 Then XA_BUG_ON(xa, entry != xa_mk_index(i))
1282  Else XA_BUG_ON(xa, entry != NULL)
1284  XA_BUG_ON(xa, i != xa_index)
1285  i++
1286  When i < 1 << 16 cycle
1287  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1289  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.
1291  check_move_tiny(xa)
1292  check_move_max(xa)
1294  When i < 16 cycle check_move_small(xa, 1UL << i)
1297  When i < 16 cycle check_move_small(xa, (1UL << i) - 1)
Caller
NameDescribe
xarray_checks