syscall.sh / xtensa / 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)
number340 (0x154)
abicommon
entry pointsys_bpf
sinceLinux 5.0
man pagebpf(2)
sourceelixir.bootlin.com

Registers

registervalue
a2340, the syscall number
a6int cmd
a3union bpf_attr *attr
a4unsigned int size
a5struct bpf_common_attr *attr_common
a8unsigned int size_common
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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