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

Registers

registervalue
rax1073742145, the syscall number
rdiint cmd
rsiunion bpf_attr *attr
rdxunsigned int size
r10struct bpf_common_attr *attr_common
r8unsigned int size_common
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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