PMF(9lua)                            LOCAL                           PMF(9lua)

NAME
     pmf -- Lua binding to the power management framework

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.

     pmf.system_shutdown(howto)
           Shutdown all attached devices.  howto should contain the reboot(2)
           howto argument.  The following values are defined as constants in
           the pmf table:

           pmf.RB_AUTOBOOT
           pmf.RB_ASKNAME
           pmf.RB_DUMP
           pmf.RB_HALT
           pmf.RB_POWERDOWN
           pmf.RB_KDB
           pmf.RB_NOSYNC
           pmf.RB_RDONLY
           pmf.RB_SINGLE
           pmf.RB_USERCONF

     pmf.set_platform(key, value)
           Insert a name-value pair into the platform information database.

     value = pmf.get_platform(key)
           Retrieve the value for key from the platform information database.
           Returns nil if the key is not present.

SEE ALSO
     lua(1), luac(1), lua(4), pmf(9), intro(9lua)

HISTORY
     An pmf Lua manual appeared in NetBSD 7.0.

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

NetBSD 7.1                     October 29, 2013                     NetBSD 7.1

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias
©1996-2017 Modified for NetBSD by Kimmo Suominen