Please enable JavaScript.
Coggle requires JavaScript to display documents.
HIB BPF learning - Coggle Diagram
HIB BPF learning
basic
data structure
hid_bpf_ctx
share between kernel and prog
pointer is prog parameter
jump table
hid_bpf_jmp_table
hid_bpf_insert_prog
kfunc
hid_bpf_get_data
hid_bpf_attach_prog
called from syscall
hid_bpf_allocate_context
hid_bpf_release_context
hid_bpf_hw_request
functions
hid_bpf_prog_run
called for running prog
hid_bpf_insert_prog
context
prog entry points
prog is called via fmod_ret/__hid_bpf_tail_call
fmod_ret/hid_bpf_device_event
SEC("fmod_ret/hid_bpf_rdesc_fixup")
comments
prog attach & dettach
bpf core
bpf_tail_call()
helper
purpose?
syscall
eBPF Syscall Commands
BPF_PROG_LOAD
BPF_PROG_ATTACH
BPF_PROG_DETACH
BPF_BTF_LOAD