Xs_client_lwt.Clientval make : unit -> client Lwt.tmake () initialises and returns a xenstore client.
val suspend : client -> unit Lwt.tsuspend () suspends the client, waiting for outstanding RPCs to be completed, cancelling all watches and causing new requests to be queued.
val resume : client -> unit Lwt.tresume () resumes the client. The connection must be up and running again before using this function.
Access xenstore with individual operations.
Access xenstore with a single transaction. On conflict the operation will be repeated.
Wait for some condition to become true and return a value. The function argument should throw Eagain if the condition is not met, and the condition will be re-evaluated when paths change.
val directory : handle -> string -> string list Lwt.tdirectory h path returns the directory listing of path.
val read : handle -> string -> string Lwt.tread h path returns the value at path or raises Enoent.
val write : handle -> string -> string -> unit Lwt.twrite h k v writes v at k.
val rm : handle -> string -> unit Lwt.trm h k removes the node k.
val mkdir : handle -> string -> unit Lwt.tmkdir h k creates the node k with an empty value.
val setperms : handle -> string -> Xs_protocol.ACL.t -> unit Lwt.tsetperms h k acl sets the permissions of k to acl.
val debug : handle -> string list -> string list Lwt.tdebug cmd_args invokes a debug command.
val restrict : handle -> int -> unit Lwt.trestrict h domid restricts the current connection to have only the priviledges associated with domain domid.
val getdomainpath : handle -> int -> string Lwt.tgetdomainpath domid returns the local directory of domain domid.
val watch : handle -> string -> Xs_protocol.Token.t -> unit Lwt.twatch h path token registers a manual watch at path with token.
val unwatch : handle -> string -> Xs_protocol.Token.t -> unit Lwt.tunwatch h path token unregisters a manual watch at path with token.
val introduce : handle -> int -> nativeint -> int -> unit Lwt.tintroduce h domid store_mfn store_port called by a toolstack to signal the construction of a new domain.
val set_target : handle -> int -> int -> unit Lwt.tset_target h stubdom_domid domid called by a toolstack to grant stubdom_domid the permissions owned by domid.