PMF(9lua)
okay bestie, welcome to PMF(9lua) β literally the Lua binding to the power management framework, and itβs giving tiny-but-mighty energy π
β¨
πΈ NAME πΈ
pmf β Lua binding to the power management framework. no cap, thatβs the whole assignment π«Ά
β¨ SYNOPSIS β¨
local pmf = require 'pmf'
pmf.system_shutdown(howto)
pmf.set_platform(key, value)
value = pmf.get_platform(key)
π DESCRIPTION π
The pmf Lua binding provides access to the power management framework. iconic behavior, honestly π
pmf.system_shutdown(howto)
Shutdown all attached devices. howto should contain the reboot(2) howto argument. these are the values defined as constants in the pmf table, and yes, you need all of them bestie:
pmf.RB_AUTOBOOTpmf.RB_ASKNAMEpmf.RB_DUMPpmf.RB_HALTpmf.RB_POWERDOWNpmf.RB_KDBpmf.RB_NOSYNCpmf.RB_RDONLYpmf.RB_SINGLEpmf.RB_USERCONF
pmf.set_platform(key, value)
Insert a name-value pair into the platform information database. cute little database moment π
value = pmf.get_platform(key)
Retrieve the value for key from the platform information database. Returns nil if the key is not present. thatβs it, thatβs the function π
π SEE ALSO π
go peek at these, iykyk:
π¦ HISTORY π¦
A pmf Lua manual appeared in NetBSD 7.0. vintage but still slaying β¨
π AUTHORS π
The pmf Lua binding was written by Marc Balmer <mbalmer@NetBSD.org>. absolute main character energy π
mwah π β source/version: Debian, dated October 29, 2013. thatβs the cute lilβ sign-off, bestie π
π¦ 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