github.com/dylandreimerink/gobpfld@v0.6.1-0.20220205171531-e79c330ad608/emulator/linux_errno.go (about) 1 package emulator 2 3 // These error codes are defined by linux and used to return errors from eBPF helper calls 4 // https://elixir.bootlin.com/linux/latest/source/include/uapi/asm-generic/errno-base.h 5 6 // Permission denied 7 func eperm() *IMMValue { 8 return newIMM(-1) 9 } 10 11 // Argument list too long 12 func e2big() *IMMValue { 13 return newIMM(-7) 14 } 15 16 // Bad address 17 func efault() *IMMValue { 18 return newIMM(-14) 19 }