函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static unsigned long xas_max(struct xa_state *xas)

返回类型:unsigned long

参数:

类型参数名称
struct xa_state *xas
411  max等于xa_index
414  如果xa_shiftxa_sibs
415  mask等于Returns the number of indices covered by a given xa_state 减1
416  max或等于mask
417  如果mask恒等于maxmax自加
422  返回:max
调用者
名称描述
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