Lunatik

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. Mirrors BPF_FUNC_* defines in <uapi/linux/bpf.h>. Keys are the kernel names with the prefix stripped: BPF_FUNC_<NAME> is linux.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> is linux.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> is linux.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> is linux.bpf.update.<NAME>.