Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Use this to calculate the maximum index that will need to be created* in order to add the entry described by @xas. Because we cannot store a* multiple-index entry at index 0, the calculation is a little more complex* than you might expect.

Proto:static unsigned long xas_max(struct xa_state *xas)

Type:unsigned long

Parameter:

TypeParameterName
struct xa_state *xas
411  max = xa_index
414  If xa_shift || xa_sibs Then
415  mask = Returns the number of indices covered by a given xa_state - 1
416  max |= mask
417  If mask == max Then max++
422  Return max
Caller
NameDescribe
xas_expandxas_expand adds nodes to the head of the tree until it has reached* sufficient height to be able to contain @xas->xa_index