package obus

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type latency = [
  1. | `Cpu_dma
  2. | `Network
]
type latency_request = {
  1. lr_uid : int;
  2. lr_pid : int;
  3. lr_exec : string;
  4. lr_timespec : int64;
  5. lr_persistent : bool;
  6. lr_typ : latency;
  7. lr_reserved : string;
  8. lr_value : int;
}
val get_latency_requests : UPower.t -> latency_request list Lwt.t
val get_latency : UPower.t -> latency:latency -> int Lwt.t
val request_latency : UPower.t -> latency:latency -> value:int -> persistent:bool -> cookie Lwt.t
val cancel_request : UPower.t -> latency:latency -> cookie:cookie -> unit Lwt.t
val set_minimum_latency : UPower.t -> latency:latency -> value:int -> unit Lwt.t
val requests_changed : UPower.t -> unit OBus_signal.t
val latency_changed : UPower.t -> (latency * int) OBus_signal.t
OCaml

Innovation. Community. Security.