syscall.sh / arm64 / 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)
number280 (0x118)
abicommon
entry pointsys_bpf
sinceLinux 3.18
man pagebpf(2)
sourceelixir.bootlin.com

Registers

registervalue
x8280, the syscall number
x0int cmd
x1union bpf_attr *attr
x2unsigned int size
x3struct bpf_common_attr *attr_common
x4unsigned int size_common
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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