tools/ocaml: Delete the Xenctrl.with_intf wrapper
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Oct 2018 13:11:20 +0000 (14:11 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Oct 2018 13:54:36 +0000 (14:54 +0100)
commit81946a73dc975a7dafe9017a8e61d1e64fdbedbf
tree404dfd8b829c97e8c9636bb35c50564c9eb8bc90
parent129025fe30934c6a04bbd9c05ade479d34ce4985
tools/ocaml: Delete the Xenctrl.with_intf wrapper

This wrapper hides an opening and closing of the xenctrl handle, which amongst
other things opens and closes multiple device files.

A process should create one handle at the start of day and reuse that; indeed
there is no guarentee that the process will retain sufficient permissions to
re-open /dev/xen/privcmd at a later point.

With the final user of Xenctrl.with_intf removed, drop the wrapper entirely.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli