xref: /freebsd/libexec/flua/libfreebsd/kenv/freebsd.kenv.3lua (revision 696922fbfa3e1c400701a3a39dcadf7dee12b06c)
1*696922fbSBaptiste Daroussin.\"
2*696922fbSBaptiste Daroussin.\" SPDX-License-Identifier: BSD-2-Clause
3*696922fbSBaptiste Daroussin.\"
4*696922fbSBaptiste Daroussin.\" Copyright (c) 2024, Baptiste Daroussin <bapt@FreeBSD.org>
5*696922fbSBaptiste Daroussin.\"
6*696922fbSBaptiste Daroussin.Dd September 6, 2024
7*696922fbSBaptiste Daroussin.Dt FREEBSD.KENV 3lua
8*696922fbSBaptiste Daroussin.Os
9*696922fbSBaptiste Daroussin.Sh NAME
10*696922fbSBaptiste Daroussin.Nm freebsd.kenv
11*696922fbSBaptiste Daroussin.Nd Lua binding to
12*696922fbSBaptiste Daroussin.Fx 's
13*696922fbSBaptiste DaroussinLinker functions
14*696922fbSBaptiste Daroussin.Sh SYNOPSIS
15*696922fbSBaptiste Daroussin.Bd -literal
16*696922fbSBaptiste Daroussinlocal kenv = require('freebsd.kenv')
17*696922fbSBaptiste Daroussin.Ed
18*696922fbSBaptiste Daroussin.Pp
19*696922fbSBaptiste Daroussin.Bl -tag -width XXXX -compact
20*696922fbSBaptiste Daroussin.It Dv table = kenv.get()
21*696922fbSBaptiste Daroussin.It Dv value = kenv.get(key)
22*696922fbSBaptiste Daroussin.El
23*696922fbSBaptiste Daroussin.Sh DESCRIPTION
24*696922fbSBaptiste DaroussinThe
25*696922fbSBaptiste Daroussin.Nm
26*696922fbSBaptiste Daroussinmodule is a binding to the
27*696922fbSBaptiste Daroussin.Xr kenv 2
28*696922fbSBaptiste Daroussinfunction.
29*696922fbSBaptiste Daroussin.Pp
30*696922fbSBaptiste DaroussinList of functions:
31*696922fbSBaptiste Daroussin.Bl -tag -width XXXX
32*696922fbSBaptiste Daroussin.It Dv table = freebsd.kenv.get()
33*696922fbSBaptiste DaroussinDump the kernel environnement into a key/value
34*696922fbSBaptiste Daroussin.Fa table .
35*696922fbSBaptiste Daroussin.It Dv value = freebsd.kenv.get(key)
36*696922fbSBaptiste DaroussinReturn the
37*696922fbSBaptiste Daroussin.Fa value
38*696922fbSBaptiste Daroussinassociated to the
39*696922fbSBaptiste Daroussin.Fa key ,
40*696922fbSBaptiste Daroussinif it exists, or
41*696922fbSBaptiste Daroussin.Va nil
42*696922fbSBaptiste Daroussinotherwise.
43*696922fbSBaptiste Daroussin.Sh SEE ALSO
44*696922fbSBaptiste Daroussin.Xr kenv 2
45