SYSTM(9lua)
πΈ NAME πΈ
okay so bestie, this is the systm(9lua) page, and it's all about systm β the Lua binding that gives you access to general kernel functionality from Lua. Kernel vibes, but make it Lua. β¨
β¨ SYNOPSIS β¨
local systm = require 'systm'
systm.print(msg)
systm.print_nolog(msg)
systm.uprint(msg)
systm.aprint_normal(msg)
systm.aprint_naive(msg)
systm.aprint_verbose(msg)
systm.aprint_debug(msg)
systm.aprint_error(msg)
count = systm.aprint_get_error_count()
systm.panic(msg)
π DESCRIPTION π
The systm Lua binding gives you access to general kernel functionality β like printing messages on the console. The systm.aprint functions are meant to be used during kernel autoconfiguration. Boot-time message main character energy, honestly. π«Ά
systm.print(msg)β sendsmsgto the console. π¨οΈsystm.print_nolog(msg)β literally identical tosystm.print(), except it does not sendmsgto the system log. No log, no cap.systm.uprint(msg)β sendsmsgto the current process's controlling tty. π»systm.aprint_normal(msg)β sendsmsgto the console unlessAB_QUIETis set. Always sends to the log. βsystm.aprint_naive(msg)β sendsmsgto the console only ifAB_QUIETis set. Never sends to the log. πsystm.aprint_verbose(msg)β sendsmsgto the console only ifAB_VERBOSEis set. Always sends to the log. π₯systm.aprint_debug(msg)β sendsmsgto the console and the log only ifAB_DEBUGis set. πsystm.aprint_error(msg)β likesystm.aprint_normal(), but it also keeps track of the number of times it's called. This lets a subsystem report how many errors happened during a quiet or silent initialization phase. πcount = systm.aprint_get_error_count()β reports the number of errors and resets the counter to0. Fresh start bestie.systm.panic(msg)β terminates the NetBSD system. The messagemsgis printed to the console and saved in the variablepanicstrfor later retrieval via core dump inspection. A newline character is added at the end automatically. π¨ This is the big red button β it literally terminates NetBSD. π¨
π¦ VARIABLES π¦
Upon initialisation, the systm module sets the following variables with the values of the corresponding kernel variable:
systm.copyrightsystm.cpu_modelsystm.machinesystm.machine_archsystm.osreleasesystm.ostypesystm.kernel_identsystm.versionsystm.ncpu
π SEE ALSO π
Go check out lua(1), luac(1), lua(4), and intro(9lua). iykyk π
π HISTORY π
An systm manual appeared in NetBSD 7.0. Periodt. π
π AUTHORS π
The systm Lua binding was written by Marc Balmer <mbalmer@NetBSD.org>. π«Ά
okay bestie, that's the whole page β cute little footer vibes: Debian, October 29, 2013. slay! π π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2013 Marc Balmer <mbalmer@NetBSD.org>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms