package obus

  1. Overview
  2. Docs
Pure Ocaml implementation of the D-Bus protocol

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.3.tar.gz
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97

doc/obus.upower/UPower_policy/index.html

Module UPower_policySource

Quality of service policy

Types

Type of request identifiers

Sourcetype latency = [
  1. | `Cpu_dma
  2. | `Network
]

Type of latency request

Sourcetype latency_request = {
  1. lr_uid : int;
    (*

    The user ID that issued the request.

    *)
  2. lr_pid : int;
    (*

    The process ID of the application.

    *)
  3. lr_exec : string;
    (*

    The executable that issued the request.

    *)
  4. lr_timespec : int64;
    (*

    The number of seconds since the epoch.

    *)
  5. lr_persistent : bool;
    (*

    If the request is persistent and outlives the connection lifetime.

    *)
  6. lr_typ : latency;
    (*

    The type of the request.

    *)
  7. lr_reserved : string;
  8. lr_value : int;
    (*

    The value, in microseconds or kilobits per second.

    *)
}
Methods
Sourceval get_latency_requests : UPower.t -> latency_request list Lwt.t
Sourceval get_latency : UPower.t -> latency:latency -> int Lwt.t
Sourceval request_latency : UPower.t -> latency:latency -> value:int -> persistent:bool -> cookie Lwt.t
Sourceval cancel_request : UPower.t -> latency:latency -> cookie:cookie -> unit Lwt.t
Sourceval set_minimum_latency : UPower.t -> latency:latency -> value:int -> unit Lwt.t
Signals
Sourceval requests_changed : UPower.t -> unit OBus_signal.t
Sourceval latency_changed : UPower.t -> (latency * int) OBus_signal.t
OCaml

Innovation. Community. Security.