package mirage-device

  1. Overview
  2. Docs
On This Page
  1. Abstract devices
Legend:
Library
Module
Module type
Parameter
Class
Class type

Abstract devices

This module define the basic functions that a MirageOS device should implement.

Release v1.1.0

type error = [
  1. | `Unimplemented
    (*

    operation not yet implemented in the code

    *)
  2. | `Disconnected
    (*

    the device has been previously disconnected

    *)
]

The type for device errors.

val pp_error : error Fmt.t

pp_error is the pretty-printer for errors.

module type S = sig ... end

Defines the functions to define what is a device state and how to disconnect such a device.

OCaml

Innovation. Community. Security.