package mirage-xen

  1. Overview
  2. Docs

Module Xen_os.EventchnSource

Low-level event channels interface.

Sourcetype handle

An initialised event channel interface.

Sourcetype t

A local event channel.

Sourceval to_int : t -> int

to_int evtchn is the port number of evtchn.

Sourceval of_int : int -> t

of_int n is the nth event channel.

Sourceval init : unit -> handle

Return an initialised event channel interface. On error it will throw a Failure exception.

Sourceval close : handle -> int

Close an event channel interface and return the status code.

Sourceval notify : handle -> t -> unit

Notify the given event channel. On error it will throw a Failure exception.

Sourceval bind_interdomain : handle -> int -> int -> t

bind_interdomain h domid remote_port returns a local event channel connected to domid:remote_port. On error it will throw a Failure exception.

Sourceval bind_unbound_port : handle -> int -> t

bind_unbound_port h remote_domid returns a new event channel awaiting an interdomain connection from remote_domid. On error it will throw a Failure exception.

Sourceval bind_dom_exc_virq : handle -> t

Binds a local event channel to the VIRQ_DOM_EXC (domain exception VIRQ). On error it will throw a Failure exception.

Sourceval unbind : handle -> t -> unit

Unbinds the given event channel. On error it will throw a Failure exception.

Sourceval unmask : handle -> t -> unit

Unmasks the given event channel. On error it will throw a Failure exception.

Sourceval is_valid : t -> bool

is_valid c is true if t is bound. Bindings are invalidated after a domain resume.

OCaml

Innovation. Community. Security.