man.bsd.lv manual page server

Manual Page Search Parameters

SYSTM(9lua) 9lua SYSTM(9lua)

systmaccess to general kernel functionality from Lua

local systm = require 'systm'

 
 
 
 
 
 
 
 
 
 

The systm Lua binding provides access to general kernel functionality like printing messages on the console. The functions are meant to be using during kernel autoconfiguration.

Send msg to the console.

The () function is identical to the () function, except is does not send msg to the system log.

Send msg to the current process's controlling tty.

Send msg to the console unless AB_QUIET is set. Always sends to the log.

Send msg to the console only if AB_QUIET is set. Never sends to the log.

Send msg to the console only if AB_VERBOSE is set. Always sends to the log.

Send msg to the console and the log only if AB_DEBUG is set.

Like (), but also keeps track of the number of times called. This allows a subsystem to report the number of errors that occurred during a quiet or silent initialization phase.

The () function reports the number of errors and resets the counter to 0.

The () function terminates the NetBSD system. The message msg is printed to the console and saved in the variable for later retrieval via core dump inspection. A newline character is added at the end automatically.

Upon initialisation, the systm module sets the following variables with the values of the corresponding kernel variable:

 
 
 
 
 
 
 
 
 

lua(1), luac(1), lua(4), intro(9lua)

An systm manual appeared in NetBSD 7.0.

The systm Lua binding was written by Marc Balmer <mbalmer@NetBSD.org>.

October 29, 2013 NetBSD-9.2