package mirage

  1. Overview
  2. Docs
The MirageOS library operating system

Install

Dune Dependency

Authors

Maintainers

Sources

mirage-4.9.0.tbz
sha256=0c07d59eb52dc3d1506eb4121c4953104a12df79d08a0f0923c9b71e7474a026
sha512=666bf9ee20c9f9de058441f252f4f40ceec6a9ffd00e5cd3b7bfa9532fd65000aeb8a83f9e55586be98d0a86ea72f2dda94e924608135e3d63441359505de58a

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.

OCaml

Innovation. Community. Security.