函数名称:Resolve the size of a passed-in "type"* return type: type "u32[x][y]", i.e. BTF_KIND_ARRAY,* *type_size: (x * y * sizeof(u32)). Hence, *type_size always* corresponds to the return type.* *elem_type: u32* *total_nelems: (x * y)
函数原型:static const struct btf_type *btf_resolve_size(const struct btf *btf, const struct btf_type *type, u32 *type_size, const struct btf_type **elem_type, u32 *total_nelems)
返回类型:struct btf_type
参数:
类型 | 参数 | 名称 |
---|
const struct btf * | btf | |
const struct btf_type * | type | is an array (e.g. u32 array[x][y]) |
u32 * | type_size | |
const struct btf_type ** | elem_type | |
u32 * | total_nelems | |