package mirage-block-combinators

  1. Overview
  2. Docs

Module Mirage_block_memSource

Sourcetype 'a io = 'a Lwt.t
Sourcetype id = string
Sourcetype page_aligned_buffer = Cstruct.t
Sourcemodule Int64Map : sig ... end
Sourcetype t = {
  1. mutable map : page_aligned_buffer Int64Map.t;
  2. info : Mirage_block.info;
  3. id : id;
}
Sourceval pp_error : Mirage_block.error Fmt.t
Sourceval pp_write_error : Mirage_block.write_error Fmt.t
Sourceval devices : (id, t) Hashtbl.t
Sourceval get_info : t -> Mirage_block.info Lwt.t
Sourceval connect : id -> t Lwt.t
Sourceval disconnect : t -> unit Lwt.t
Sourceval read : t -> Int64Map.key -> Cstruct.t list -> (unit, 'a) result Lwt.t
Sourceval write : t -> Int64Map.key -> page_aligned_buffer list -> (unit, 'a) result Lwt.t