Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_base_func_proto

Proto:static const struct bpf_func_proto *cgroup_base_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)

Type:struct bpf_func_proto

Parameter:

TypeParameterName
enum bpf_func_idfunc_id
const struct bpf_prog *prog
786  Case func_id == BPF_FUNC_map_lookup_elem
787  Return bpf_map_lookup_elem_proto
788  Case func_id == BPF_FUNC_map_update_elem
789  Return bpf_map_update_elem_proto
790  Case func_id == BPF_FUNC_map_delete_elem
791  Return bpf_map_delete_elem_proto
792  Case func_id == BPF_FUNC_map_push_elem
793  Return bpf_map_push_elem_proto
794  Case func_id == BPF_FUNC_map_pop_elem
795  Return bpf_map_pop_elem_proto
796  Case func_id == BPF_FUNC_map_peek_elem
797  Return bpf_map_peek_elem_proto
798  Case func_id == BPF_FUNC_get_current_uid_gid
799  Return bpf_get_current_uid_gid_proto
800  Case func_id == BPF_FUNC_get_local_storage
801  Return bpf_get_local_storage_proto
802  Case func_id == BPF_FUNC_get_current_cgroup_id
803  Return bpf_get_current_cgroup_id_proto
804  Case func_id == BPF_FUNC_trace_printk
805  If Check operation authority Then Return bpf_get_trace_printk_proto()
808  Default
809  Return NULL
Caller
NameDescribe
cgroup_dev_func_proto
sysctl_func_proto
cg_sockopt_func_proto