linux.bpfModule
Linux kernel constants exposed under linux.bpf.
Values are populated at build time from the kernel headers.Usage
local bpf = require("linux.bpf")
Tables
| func | BPF helper function IDs (enum bpf_func_id), the number a program’s call names. |
| map_type | BPF map types. |
| max | BPF program limits: the bytes of stack a program may use. |
| update | BPF map update flags. |
Tables in detail
- func
-
BPF helper function IDs (
enum bpf_func_id), the number a program’s call names. MirrorsBPF_FUNC_*defines in<uapi/linux/bpf.h>. Keys are the kernel names with the prefix stripped:BPF_FUNC_<NAME>islinux.bpf.func.<NAME>. - map_type
-
BPF map types.
Mirrors
BPF_MAP_TYPE_*defines in<uapi/linux/bpf.h>. Keys are the kernel names with the prefix stripped:BPF_MAP_TYPE_<NAME>islinux.bpf.map_type.<NAME>. - max
-
BPF program limits: the bytes of stack a program may use.
Mirrors
MAX_BPF_*defines in<linux/filter.h>. Keys are the kernel names with the prefix stripped:MAX_BPF_<NAME>islinux.bpf.max.<NAME>. - update
-
BPF map update flags.
Mirrors
BPF_*defines in<uapi/linux/bpf.h>. Keys are the kernel names with the prefix stripped:BPF_<NAME>islinux.bpf.update.<NAME>.