def nm.path.k

bend-osdev-acpi@0.1.1.0 · aml_name.bend:276

import bend-osdev-acpi@0.1.1.0/aml_name.bend as AmlName
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E

276def nm.path.k(k: AmlLeadKind, c: U32, t: List<&2, U32>) -> Result<&2, &2, E.AcpiError, AmlSegsL>:
277  match k:
278    case AmlLNull{}:
279      Done{AmlSegsL{Nil{}, t}}
280    case AmlLDual{}:
281      nm.segs(2n, t)
282    case AmlLMulti{}:
283      nm.multi(t)
284    case AmlLSeg{}:
285      nm.segs(1n, Con{c, t})
286    case _:
287      Fail{E.AcpiAmlBadName{}}

Uses (8)

Used by (3)