albatross/src/vmm_unix.mli

31 lines
856 B
OCaml
Raw Normal View History

2017-05-26 14:30:34 +00:00
(* (c) 2017 Hannes Mehnert, all rights reserved *)
open Rresult
open Vmm_core
2018-11-13 00:02:05 +00:00
val prepare : Name.t -> Unikernel.config -> (string list, [> R.msg ]) result
2017-05-26 14:30:34 +00:00
2018-11-13 00:02:05 +00:00
val exec : Name.t -> Unikernel.config -> string list -> Name.t option ->
(Unikernel.t, [> R.msg ]) result
2017-05-26 14:30:34 +00:00
val free_resources : Name.t -> string list -> (unit, [> R.msg ]) result
2018-11-13 00:02:05 +00:00
val shutdown : Name.t -> Unikernel.t -> (unit, [> R.msg ]) result
2017-05-26 14:30:34 +00:00
2018-11-13 00:02:05 +00:00
val destroy : Unikernel.t -> unit
2017-05-26 14:30:34 +00:00
val close_no_err : Unix.file_descr -> unit
2018-11-10 00:02:07 +00:00
val create_block : Name.t -> int -> (unit, [> R.msg ]) result
2018-11-10 00:02:07 +00:00
val destroy_block : Name.t -> (unit, [> R.msg ]) result
2018-11-10 00:02:07 +00:00
val find_block_devices : unit -> ((Name.t * int) list, [> R.msg ]) result
val dump : Cstruct.t -> (unit, [> R.msg ]) result
val restore : unit -> (Cstruct.t, [> R.msg | `NoFile ]) result
val vm_device : Unikernel.t -> (string, [> R.msg ]) result