Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_array_seq_show

Proto:static void btf_array_seq_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct seq_file *m)

Type:void

Parameter:

TypeParameterName
const struct btf *btf
const struct btf_type *t
u32type_id
void *data
u8bits_offset
struct seq_file *m
2076  array = btf_type_array(t)
2081  elem_type_id = type
2082  elem_type = btf_type_id_size(btf, & elem_type_id, & elem_size)
2083  elem_ops = btf_type_ops(elem_type)
2084  seq_puts(m, "[")
2085  When i < nelems cycle
2086  If i Then seq_puts(m, ",")
2089  seq_show(btf, elem_type, elem_type_id, data, bits_offset, m)
2091  data += elem_size
2093  seq_puts(m, "]")