def in.method.flags

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:2247

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

2247def in.method.flags(-H: Data, +p: String, r: Result<&2, &2, E.AcpiError, AmlB>, after: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
2248  match r:
2249    case Fail{e}:
2250      AmlMachine{AmlMFail{e}, in.no.cur(), fs, w}
2251    case Done{AmlB{+f, +c}}:
2252      in.def.chk(H, S.AmlNs.has(AmlWorld.ns(H, w), p), p, S.AmlOMethod{U32.to_nat(U32.and(f, 7)), f, cur.take(cur.len(c), c)}, after, fs, w)

Uses (19)

Used by (1)