module UPower_policy: sig
.. end
Quality of service policy
Types
type
cookie
Type of request identifiers
type
latency = [ `Cpu_dma | `Network ]
Type of latency request
type
latency_request = {
|
lr_cookie : cookie ; |
|
lr_uid : int ; |
|
lr_pid : int ; |
|
lr_exec : string ; |
|
lr_timespec : int64 ; |
|
lr_persistent : bool ; |
|
lr_typ : latency ; |
|
lr_reserved : string ; |
|
lr_value : int ; |
}
Methods
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
Signals
val requests_changed : UPower.t -> unit OBus_signal.t
val latency_changed : UPower.t -> (latency * int) OBus_signal.t