mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools: ocaml: rename the topology types and functions
The aims are: 1. make the records instantiable if they have field names in common; and 2. to make it easier to derive the names programatically from the IDL Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Cc: David Scott <dave.scott@eu.citrix.com>
This commit is contained in:
1 parent
a411b4e61a
commit
46e6fd499a
2 files changed
+18
-19
No files matched your search
@@ -211,14 +211,15 @@ module Physinfo = struct
|
||||
|
||||
end
|
||||
|
||||
type topology =
|
||||
{
|
||||
core: int;
|
||||
socket: int;
|
||||
node: int;
|
||||
}
|
||||
|
||||
type topologyinfo = topology option array
|
||||
module Topologyinfo = struct
|
||||
type t =
|
||||
{
|
||||
core: int;
|
||||
socket: int;
|
||||
node: int;
|
||||
}
|
||||
external get: unit -> t = "stub_xl_topologyinfo"
|
||||
end
|
||||
|
||||
module Sched_credit = struct
|
||||
type t =
|
||||
@@ -236,7 +237,6 @@ type button =
|
||||
|
||||
external button_press : domid -> button -> unit = "stub_xl_button_press"
|
||||
|
||||
external topologyinfo: unit -> topologyinfo = "stub_xl_topologyinfo"
|
||||
|
||||
external send_trigger : domid -> string -> int -> unit = "stub_xl_send_trigger"
|
||||
external send_sysrq : domid -> char -> unit = "stub_xl_send_sysrq"
|
||||
|
||||
@@ -211,14 +211,15 @@ module Physinfo : sig
|
||||
|
||||
end
|
||||
|
||||
type topology =
|
||||
{
|
||||
core: int;
|
||||
socket: int;
|
||||
node: int;
|
||||
}
|
||||
|
||||
type topologyinfo = topology option array
|
||||
module Topologyinfo : sig
|
||||
type t =
|
||||
{
|
||||
core: int;
|
||||
socket: int;
|
||||
node: int;
|
||||
}
|
||||
external get : unit -> t = "stub_xl_topologyinfo"
|
||||
end
|
||||
|
||||
module Sched_credit : sig
|
||||
type t =
|
||||
@@ -237,8 +238,6 @@ type button =
|
||||
|
||||
external button_press : domid -> button -> unit = "stub_xl_button_press"
|
||||
|
||||
external topologyinfo: unit -> topologyinfo = "stub_xl_topologyinfo"
|
||||
|
||||
external send_trigger : domid -> string -> int -> unit = "stub_xl_send_trigger"
|
||||
external send_sysrq : domid -> char -> unit = "stub_xl_send_sysrq"
|
||||
external send_debug_keys : domid -> string -> unit = "stub_xl_send_debug_keys"
|
||||