mirror of https://github.com/aya-rs/aya
Expose io_error in SyscallError
If a bpf syscall fails, it would be useful to know if this is due to not having enough permissions or that the kernel does not have BPF support. Ubuntu kernels are compiled without `CONFIG_BPF_LIRC_MODE2` so this is important for https://github.com/seanyoung/cir/ : I would like to present a useful error saying your kernel does not support BPF IR decoders, go fix your kernel. Also, when removing all BPF programs using `cir config --clear` then if there is no support for BPF, there is nothing to clear and the syscall error can be ignored.pull/928/head
parent
b21f2a1945
commit
a6c45f61c7
Loading…
Reference in New Issue