package mirage-block-xen

  1. Overview
  2. Docs

Module Blkproto.ReqSource

Sourcetype seg = {
  1. gref : Xen_os.Xen.Gntref.t;
  2. first_sector : int;
  3. last_sector : int;
}
Sourcetype segs =
  1. | Direct of seg array
  2. | Indirect of int32 array
Sourcetype op =
  1. | Read
  2. | Write
  3. | Write_barrier
  4. | Flush
  5. | Op_reserved_1
  6. | Trim
  7. | Indirect_op
Sourceval string_of_op : op -> string
Sourcetype t = {
  1. op : op option;
  2. handle : int;
  3. id : int64;
  4. sector : int64;
  5. nr_segs : int;
  6. segs : segs;
}
Sourceval get_segments : Cstruct.t -> int -> seg array
Sourcemodule type PROTOCOL_IMPLEMENTATION = sig ... end