package processor

  1. Overview
  2. Docs
Processor Topology & Affinity for ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.tar.gz
sha256=35df0b95a8d4b420feea0ec98bd3b83592884764a586643979098bdbf3fd5ba3
sha512=c9ae036fa90009352775d61d6ae7cfdbe9535677a59c0cab4a6ea6a26e63fc775d48606e7a0c55ba4486f42021b4979cd3eb5f68d9366d0cda8cb9067a531016

doc/processor.amd64/Amd64/index.html

Module Amd64Source

Sourceval cpuid_leaf : int -> int -> int * int * int * int

cpuid_leaf code leaf is the CPUID instruction with input code(eax) and leaf(ecx), return is the tuple (eax * ebx * ecx * edx)

Sourceval cpuid : int -> int * int * int * int

cpuid code is cpuid_leaf code 0

Sourceval register_to_bytes : int -> bytes

register_to_bytes register is the 4 byte representation of register in bytes

Sourceval decompose_apic : int -> int * int * int

decompose_apic apicid is the smt * core * package id of apicid. Can throw invalid_argument if cpu_vendor is unknown or apicid is invalid

Sourceval cpu_vendor : string

cpu_vendor is the cpu brand, Genuineintel, AuthenticAMD and so on

Sourceval cpu_model : string

cpu_model model like "Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz"

OCaml

Innovation. Community. Security.