package mirage

  1. Overview
  2. Docs
The MirageOS library operating system

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mirage-4.10.1.tbz
sha256=1155b5e9a585d3b44dfdd72777d94a7222b0f88a1737593bfb1f09954b6fb914
sha512=c59a0051f1037d7dd5bb81dfc8a265117b533383d0b285e0c2101b44d2ca8bcab40c432ce696a5b44397216e78ac59863f1ab6c5fb33bb338ca18d7ef359500f

doc/mirage.functoria/Functoria/Device/Graph/index.html

Module Device.GraphSource

Sourcetype t =
  1. | D : {
    1. dev : (_, _) t;
    2. args : t list;
    3. deps : t list;
    4. id : int;
    } -> t

A graph of devices, annotated with their arguments, dependencies, and a unique identifier.

Warning: this is truly a DAG: sharing must be preserved. Manual walks are discouraged, please use fold instead.

Sourceval fold : (t -> 'a -> 'a) -> t -> 'a -> 'a

fold f g z applies f on each device in topological order.

Sourceval var_name : t -> string

var_name t returns the name identifying t which is a valid OCaml variable identifier.

Sourceval impl_name : t -> string

impl_name t returns the name identifying t's module implementation.