syscall.sh / alpha / bpf

bpf

perform a command on an extended BPF map or program

sys_bpf(int cmd, union bpf_attr *attr, unsigned int size, struct bpf_common_attr *attr_common, unsigned int size_common)
number515 (0x203)
abicommon
entry pointsys_bpf
sinceLinux 5.0
man pagebpf(2)
sourceelixir.bootlin.com

Registers

registervalue
v0515, the syscall number
a0int cmd
a1union bpf_attr *attr
a2unsigned int size
a3struct bpf_common_attr *attr_common
a4unsigned int size_common
v0the return value

Then run callsys to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/alpha/bpf