Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_vmlinux_init

Proto:static int __init btf_vmlinux_init(void)

Type:int

Parameter:Nothing

33  If Not See scripts/link-vmlinux.sh, gen_btf() func for details Then Return 0
36  btf_kobj = kobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it
37  If Not btf_kobj Then Return -ENOMEM
40  size = _binary__btf_vmlinux_bin_end - See scripts/link-vmlinux.sh, gen_btf() func for details
43  Return sysfs_create_bin_file(btf_kobj, & bin_attr_btf_vmlinux)