package albatross

  1. Overview
  2. Docs
val let* : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val sysconf_clock_tick : unit -> int
val sysctl_kinfo_proc : int -> Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem
val get_ifindex_by_name : string -> int
val sysctl_ifdata : int -> Vmm_core.Stats.ifdata
type vmctx
type vcpu
val vmmapi_open : string -> vmctx * vcpu
val vmmapi_close : vmctx -> vcpu -> unit
val vmmapi_stats : vmctx -> vcpu -> (string * int64) list
type 'a t = {
  1. pid_nic : ((vmctx * vcpu, int) Stdlib.result * string * (string * int * string) list) Vmm_core.IM.t;
  2. vmid_pid : int Vmm_trie.t;
  3. name_sockets : 'a Vmm_trie.t;
}
val pp_strings : Stdlib.Format.formatter -> string list -> unit
val pp_nics : Stdlib.Format.formatter -> (string * string) list -> unit
val empty : unit -> 'a t
val remove_entry : 'a t -> Vmm_core.Name.t -> 'a t
val wrap : ('a -> 'b) -> 'a -> 'b option
val vmmapi : [ `Close | `Open ] -> unit
val remove_vmid : 'a t -> Vmm_core.Name.t -> 'a t
val open_vmmapi : retries:int -> string -> (vmctx * vcpu, int) Stdlib.result
val try_open_vmmapi : ((vmctx * vcpu, int) Stdlib.result * string * 'a) Vmm_core.IM.t -> ((vmctx * vcpu, int) Stdlib.result * string * 'a) Vmm_core.IM.t
val string_of_file : string -> (string, [> `Msg of string ]) Stdlib.result
val parse_proc_stat : string -> (string list, [> `Msg of string ]) Stdlib.result
val read_proc_status : int -> ((string * string) list, [> `Msg of string ]) Stdlib.result
val linux_rusage : int -> (Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem, [> `Msg of string ]) Stdlib.result
val rusage : int -> (Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem) option
val gather : int -> (vmctx * vcpu, 'a) Stdlib.result -> (string * int * string) list -> Vmm_core.Stats.rusage option * Vmm_core.Stats.kinfo_mem option * (string * int64) list option * Vmm_core.Stats.ifdata list
val tick : bool -> (Vmm_commands.version * 'a) t -> (Vmm_commands.version * 'a) t * ('a * Vmm_core.Name.t * (Vmm_commands.header * [> `Data of [> `Stats_data of Vmm_core.Stats.rusage * Vmm_core.Stats.kinfo_mem option * (string * int64) list option * Vmm_core.Stats.ifdata list ] ])) list
val add_pid : 'a t -> Vmm_core.Name.t -> string -> Vmm_core.IM.key -> (string * string) list -> ('a t, 'b) Stdlib.result
val handle : (Vmm_commands.version * 'a) t -> 'a -> (Vmm_commands.header * Vmm_commands.res) -> ((Vmm_commands.version * 'a) t * (Vmm_commands.version * 'a) option * string, [> `Msg of string ]) Stdlib.result
OCaml

Innovation. Community. Security.