Lunatik

linux.genlModule

Linux kernel constants exposed under linux.genl.

Values are populated at build time from the kernel headers.

Usage

local genl = require("linux.genl")

Tables

ctrl.attr Generic netlink controller attributes (CTRL_ATTR_*).
ctrl.cmd Generic netlink controller commands (CTRL_CMD_*).
id Generic netlink reserved family ids (GENL_ID_*).
layout Generic netlink header layout.

Tables in detail

ctrl.attr
Generic netlink controller attributes (CTRL_ATTR_). Mirrors CTRL_ATTR_ defines in <uapi/linux/genetlink.h>. Keys are the kernel names with the prefix stripped: CTRL_ATTR_<NAME> is linux.genl.ctrl.attr.<NAME>.
ctrl.cmd
Generic netlink controller commands (CTRL_CMD_). Mirrors CTRL_CMD_ defines in <uapi/linux/genetlink.h>. Keys are the kernel names with the prefix stripped: CTRL_CMD_<NAME> is linux.genl.ctrl.cmd.<NAME>.
id
Generic netlink reserved family ids (GENL_ID_). Mirrors GENL_ID_ defines in <uapi/linux/genetlink.h>. Keys are the kernel names with the prefix stripped: GENL_ID_<NAME> is linux.genl.id.<NAME>.
layout
Generic netlink header layout. Layout descriptors (per-field offset/size/signedness) generated from <uapi/linux/genetlink.h>; consume via require("struct").