module UPower_policy:sig
..end
typelatency =
[ `Cpu_dma | `Network ]
type
latency_request = {
|
: |
(* |
The random cookie that identifies the request.
| *) |
|
lr_uid : |
(* |
The user ID that issued the request.
| *) |
|
lr_pid : |
(* |
The process ID of the application.
| *) |
|
lr_exec : |
(* |
The executable that issued the request.
| *) |
|
lr_timespec : |
(* |
The number of seconds since the epoch.
| *) |
|
lr_persistent : |
(* |
If the request is persistent and outlives the connection lifetime.
| *) |
|
lr_typ : |
(* |
The type of the request.
| *) |
|
lr_reserved : |
|||
|
lr_value : |
(* |
The value, in microseconds or kilobits per second.
| *) |
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