def in.dev.k
bend-osdev-acpi@0.1.1.0 · aml_interp.bend:2283
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_ns.bend as S
2283def in.dev.k(-H: Data, +kind: U32, +extra: Nat, rn: Result<&2, &2, E.AcpiError, AmlNameC>, after: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
2284 match rn:
2285 case Fail{e}:
2286 AmlMachine{AmlMFail{e}, in.no.cur(), fs, w}
2287 case Done{AmlNameC{n, +c}}:
2288 +p = S.AmlPath.of_name(in.scope(H, w), n)
2289 in.dev.fits(H, Nat.is_le(extra, cur.len(c)), p, kind, cur.skip(extra, c), after, fs, w)