This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
22
unikernel/duniverse/mirage-unix/lib/unix_os.mli
Normal file
22
unikernel/duniverse/mirage-unix/lib/unix_os.mli
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
(** MirageOS Unix implementation of the [OS] module *)
|
||||
|
||||
module Lifecycle : sig
|
||||
val await_shutdown_request :
|
||||
?can_poweroff:bool ->
|
||||
?can_reboot:bool ->
|
||||
unit -> [`Poweroff | `Reboot] Lwt.t
|
||||
(** [await_shutdown_request ()] is thread that resolves when the domain is
|
||||
asked to shut down. The optional [poweroff] (default:[true]) and
|
||||
[reboot] (default:[false]) arguments can be used to indicate which
|
||||
features the caller wants to advertise (however, you can still get a
|
||||
request for a mode you didn't claim to support). *)
|
||||
end
|
||||
|
||||
module Main : sig
|
||||
val run : unit Lwt.t -> unit
|
||||
end
|
||||
|
||||
module Time : sig
|
||||
val sleep_ns : int64 -> unit Lwt.t
|
||||
(** [sleep_ns d] Block the current thread for [n] nanoseconds. *)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue