]> git.lizzy.rs Git - plan9front.git/commitdiff
arch(3), aml(2): document /dev/acpitbls file
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 10 Nov 2013 20:26:11 +0000 (21:26 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 10 Nov 2013 20:26:11 +0000 (21:26 +0100)
sys/man/2/aml
sys/man/3/arch

index 8849ef24cd35705ea00b7ad8ca11b47dc248487b..d6d58d44d0aef915213325f75a7ba0be311ddf72 100644 (file)
@@ -52,6 +52,11 @@ definition block of
 .I len
 byte size read from
 .IR data .
+The pc kernel provides access to the ACPI tables through the
+.B /dev/acpitbls
+file (see
+.IR arch (3)
+for further details).
 .TP
 .BI amltag( p )
 Objects are dynamically allocated and typed and are passed as
@@ -278,3 +283,5 @@ defined in
 for dynamic allocation.
 .SH SOURCE
 .B /sys/src/libaml
+.SH "SEE ALSO"
+.IR arch (3)
index 413ef9d08f5275bec1a62027655b1ceba9ab9534..eaef3e6b17abcdf7ff3f056b5b8750e0a8091afb 100644 (file)
@@ -5,6 +5,7 @@ arch \- architecture-specific information and control
 .nf
 .B bind -a #P /dev
 .sp 0.3v
+.B /dev/acpitbls
 .B /dev/archctl
 .B /dev/cputype
 .B /dev/ioalloc
@@ -126,6 +127,14 @@ file descriptor.
 Reads and writes to
 .I msr
 go to the P4/P6/Core/Core2/AMD64 MSRs.
+.PP
+Reads from
+.I acpitbls
+returns a concatenation of system ACPI tables. Each table
+is prefixed with a fixed size header that gives the name
+sigature and size of the table (see section
+.IR "5.2.6 System Description Table Header"
+in the ACPI specification).
 .SH EXAMPLE
 The following code reads from an x86 byte I/O port.
 .IP