package solo5-elftool

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type mft_entry =
  1. | Dev_block_basic of string
  2. | Dev_net_basic of string

An entry in the manifest representing a device.

type mft = {
  1. version : int;
    (*

    version is at the moment always 1.

    *)
  2. entries : mft_entry list;
    (*

    entries in the manifest.

    *)
}

The Solo5 manifest

type abi_target =
  1. | Hvt
  2. | Spt
  3. | Virtio
  4. | Muen
  5. | Genode
  6. | Xen

The known solo5 targets

type abi = {
  1. target : abi_target;
    (*

    abi target

    *)
  2. version : int32;
    (*

    abi version

    *)
}

abi taget and abi version

val pp_mft_entry : Stdlib.Format.formatter -> mft_entry -> unit
val pp_mft : Stdlib.Format.formatter -> mft -> unit

Pretty-prints the manifest as JSON in a similar style as the Solo5 command * line tool

solo5-elftool query-manifest

.

val pp_abi_target : Stdlib.Format.formatter -> abi_target -> unit
val pp_abi : Stdlib.Format.formatter -> abi -> unit

Pretty-prints the manifest as JSON in a similar style as the Solo5 command * line tool

solo5-elftool query-abi

.

val query_manifest : Owee_buf.t -> (mft, [> `Msg of string ]) Stdlib.result

query_manifest buf is the solo5 manifest of buf, or an error message.

val query_abi : Owee_buf.t -> (abi, [> `Msg of string ]) Stdlib.result

query_abi buf is the solo5 abi of buf, or an error message.