def AmlSystem.caller

bend-osdev-acpi@0.1.1.0 · aml.bend:154

import bend-osdev-acpi@0.1.1.0/aml.bend as Aml
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V
import bend-osdev-acpi@0.1.1.0/aml_ns.bend as S
import bend-osdev-acpi@0.1.1.0/aml_host.bend as Hs
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as I

154# a machine about to evaluate the object at path p (a method is called
155# with args; any other object is read before the first step)
156def AmlSystem.caller(~H: Data, ~io: H -> Hs.AmlHostOp -> Result<&2, &2, E.AcpiError, Hs.AmlHostAns<H>>, s: AmlSystem<H>, +p: String, args: List<&2, V.AmlValue>) -> I.AmlMachine<H>:
157  match s:
158    case AmlSystem{o, +wd, +n, h}:
159      +q = I.in.unalias(n, p)
160      aml.start(~H, ~io, S.AmlNs.get(n, q), q, aml.fit.args(wd, args), I.AmlWorld{aml.ctx("\\", Nil{}), n, h, aml.env(wd, o)})

Uses (16)

Used by (2)