package mirage

  1. Overview
  2. Docs
The MirageOS library operating system

Install

Dune Dependency

Authors

Maintainers

Sources

mirage-4.7.0.tbz
sha256=ade8c410b2de3997c4a513f53f6c990dac6af508161e20df01b64fa7975ca5be
sha512=42fddf09be84c4251417145b88d4f63b41db1b29c9622b2b4e4508e31146f227a16875e670da96251208745f79a42f0b7d2bd8b44b883a705381b4c97a4255b8

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.