package mirage-block-lwt

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

Innovation. Community. Security.