ref: f637986cae866e967adce3dfc9f9581cfc7c656c
parent: f73bf5f90dd854bbbba8f56a8288892170d8d763
author: stanley lieber <[email protected]>
date: Sun Nov 3 15:01:03 EST 2013
aml(2): english
--- a/sys/man/2/aml
+++ b/sys/man/2/aml
@@ -31,7 +31,7 @@
int amldebug;
.EE
.SH DESCRIPTION
-The aml library implements a interpreter for the ACPI machine language
+The aml library implements an interpreter for the ACPI machine language
byte code.
.PP
The interpreter runtime state is initialized by calling
@@ -40,7 +40,7 @@
.I amlexit
is called.
The runtime state consists of objects organized in a global
-namespace. The name object refered by
+namespace. The name object referred to by
.I amlroot
is the root of that namespace.
.PP
@@ -74,7 +74,7 @@
.PP
Name objects (like
.IR amlroot )
-can be traversed with
+can be traversed with the
.I amlenum
and
.I amlwalk
@@ -107,11 +107,11 @@
returns the value of a name, reference or field object.
Calling
.I amlval
-on any other object yiedls the same object.
+on any other object yields the same object.
.PP
.I Amllen
is defined for variable length objects like buffers, strings and packages.
-For strings, the number of characters (not including terminating null byte)
+For strings, the number of characters (not including the terminating null byte)
is returned. For buffers, the size of the buffer in bytes is returned.
For packages (arrays), the number of elements is returned. For any other
object types, the return value is undefined.
@@ -118,8 +118,8 @@
.PP
.I Amlint
returns the integer value of an object. For strings, the string is interpreted
-as hexadecimal number. For buffers and buffer fields, the binary value is returned.
-Integers just return ther value. Any other object types yield zero.
+as an hexadecimal number. For buffers and buffer fields, the binary value is returned.
+Integers just return their value. Any other object types yield zero.
.PP
Integer, buffer, string and package objects can be created with the
.I amlnew
@@ -191,7 +191,7 @@
.I Amlalloc
and
.I amlfree
-can be optionaly defined to control dynamic memory allocation
+can be optionally defined to control dynamic memory allocation
providing a way to limit or pool the memory allocated by acpi.
If not provided, the library will use the functions
defined in