freebsd.kenv(3lua)

freebsd.kenv3lua

Lua binding to freebsd 's linker functions

Usage

local kenv = require('freebsd.kenv')
table = kenv.get()
value = kenv.get(key)

Overview

The freebsd.kenv module is a binding to the kenv(2) function.

List of functions:

table = freebsd.kenv.get()

Dump the kernel environment into a key/value table.

value = freebsd.kenv.get(key)

Return the value associated to the key, if it exists, or nil otherwise.

Releases

5 releases since FreeBSD 14.4-RELEASE; the text changed 2 times.

  1. 14.4–14.5
  2. 15.0
  3. 15.1–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.