package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

obus-1.2.5.tar.gz
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205

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.