SYSTM(9lua)

πŸ“¦ version 11.0, in nixpkgs unstable

🌸 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) β€” sends msg to the console. πŸ–¨οΈ
  • systm.print_nolog(msg) β€” literally identical to systm.print(), except it does not send msg to the system log. No log, no cap.
  • systm.uprint(msg) β€” sends msg to the current process's controlling tty. πŸ’»
  • systm.aprint_normal(msg) β€” sends msg to the console unless AB_QUIET is set. Always sends to the log. ⭐
  • systm.aprint_naive(msg) β€” sends msg to the console only if AB_QUIET is set. Never sends to the log. πŸŽ€
  • systm.aprint_verbose(msg) β€” sends msg to the console only if AB_VERBOSE is set. Always sends to the log. πŸ”₯
  • systm.aprint_debug(msg) β€” sends msg to the console and the log only if AB_DEBUG is set. πŸ›
  • systm.aprint_error(msg) β€” like systm.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 to 0. Fresh start bestie.
  • systm.panic(msg) β€” terminates the NetBSD system. The message msg is printed to the console and saved in the variable panicstr for 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.copyright
  • systm.cpu_model
  • systm.machine
  • systm.machine_arch
  • systm.osrelease
  • systm.ostype
  • systm.kernel_ident
  • systm.version
  • systm.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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms