package mirage-bootvar-xen

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create : unit -> [ `Ok of t | `Error of string ] Lwt.t

Read boot parameter line and store in assoc list. Expected format is "key1=val1 key2=val2".

val get : t -> string -> string option

Get boot parameter. Returns None if the parameter is not found.

val get_exn : t -> string -> string

Get boot parameter. Raises Parameter_not_found s if the parameter is not found.

exception Parameter_not_found of string
val parameters : t -> (string * string) list

Returns the assoc list of key and values.

val argv : unit -> [ `Ok of string array | `Error of string ] Lwt.t

Return an argv-like structure.