[GSoC WIP] liblua: ACPICA Lua bindings
GSoC WIP under @bsdimp
Follows #1843 and #1818 in that order.
Description: Lua bindings for ACPICA in loader to provide an interface for users to print the ACPI namespace, attach/detach/get data off of device nodes, and evaluate objects.
Please see man page commit for acpi.lua for more information
lacpi_object.c
Module for evaluating ACPI objects.
This module also provides the ability to convert pathnames into
their opaque pointer using get_handle.
lacpi_walk.c
Allows users to walk the namespace in the loader. Currently works by walking the entire namespace and storing each node in a 2D table of nodes.
Use case: nodes = lacpi.walk.namespace() for _, node in ipairs(nodes) do print(node.path, node.lvl, node.hid, node.uid) end
Future plans: (1) better representation of nodes for the user when printed (2) strategy patterns for how to receive the namespace
lacpi_data.c
Allows a user to post ACPI_OBJECTs onto namespace nodes. See actypes.h for all possible ACPI_OBJECTs.
Sponsored by: Google Summer of Code 2025 Signed-off-by: Kayla Powell (AKA Kat) [email protected]
Thank you for taking the time to contribute to FreeBSD! There is an issue that needs to be fixed:
- Missing Signed-off-by linesb5d71ae63f66c89022781d01b9aeebc1a5746798, 1a20a357f9c360b69dc2d8ceecd5746ea7d333b0, b8fb47d1fc8d063dacdb083285b22eb757fa062a, e90f340aa55074df91503ee144ddba6b1395d35c, a53ebc21f63ced0e4c5a1812f04bd5d977014a7b
Please review CONTRIBUTING.md, then update and push your branch again.