函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns pointer to the specified byte @offset within @radix, or NULL if not* allocated

函数原型:void *__genradix_ptr(struct __genradix *radix, size_t offset)

返回类型:void

参数:

类型参数名称
struct __genradix *radix
size_toffset
56  r等于READ_ONCE(root)
57  n等于genradix_root_to_node(r)
58  level等于genradix_root_to_depth(r)
60  如果log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (offset)大于等于genradix_depth_shift(level)则返回:NULL
63  当1循环
64  如果非n则返回:NULL
66  如果非level退出
69  level自减
71  n等于 Interior node: [offset >> genradix_depth_shift(level)]
72  offset与等于Returns size (of data, in bytes) that a tree of a given depth holds:减1
75  返回: Leaf: [offset]