package mirage-types

  1. Overview
  2. Docs
type page_aligned_buffer
type error = [
  1. | `Disconnected
  2. | `Is_read_only
  3. | `Unimplemented
  4. | `Unknown of string
]
type +'a io
type t
type id = string
val connect : id -> [ `Error of error | `Ok of t ] io
val disconnect : t -> unit io
type info = {
  1. read_write : bool;
  2. sector_size : int;
  3. size_sectors : int64;
}
val get_info : t -> info io
val read : t -> int64 -> page_aligned_buffer list -> [ `Error of error | `Ok of unit ] io
val write : t -> int64 -> page_aligned_buffer list -> [ `Error of error | `Ok of unit ] io
OCaml

Innovation. Community. Security.