[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH for-4.9] oxenstored: remove "_proc" in names
They aren't limited to proc file system anymore. Use more generic names. No functional change. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- This is a follow-up patch for "oxenstored: make it work on FreeBSD". Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Cc: dave@xxxxxxxxxx Cc: christian.lindig@xxxxxxxxxx Cc: jonathan.ludlam@xxxxxxxxxx Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx> --- tools/ocaml/xenstored/define.ml | 4 ++-- tools/ocaml/xenstored/domains.ml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ocaml/xenstored/define.ml b/tools/ocaml/xenstored/define.ml index 15b03e539f..f3d8cd6ddc 100644 --- a/tools/ocaml/xenstored/define.ml +++ b/tools/ocaml/xenstored/define.ml @@ -19,13 +19,13 @@ open Unix_syscalls let xenstored_major = 1 let xenstored_minor = 0 -let xenstored_proc_kva = +let xenstored_kva = let info = Unix_syscalls.uname () in match info.sysname with | "Linux" -> "/proc/xen/xsd_kva" | "FreeBSD" -> "/dev/xen/xenstored" | _ -> "nonexistent" -let xenstored_proc_port = +let xenstored_port = let info = Unix_syscalls.uname () in match info.sysname with | "Linux" -> "/proc/xen/xsd_port" diff --git a/tools/ocaml/xenstored/domains.ml b/tools/ocaml/xenstored/domains.ml index fdae298613..572c9fb091 100644 --- a/tools/ocaml/xenstored/domains.ml +++ b/tools/ocaml/xenstored/domains.ml @@ -130,8 +130,8 @@ let create xc doms domid mfn port = let create0 doms = let port, interface = ( - let port = Utils.read_file_single_integer Define.xenstored_proc_port - and fd = Unix.openfile Define.xenstored_proc_kva + let port = Utils.read_file_single_integer Define.xenstored_port + and fd = Unix.openfile Define.xenstored_kva [ Unix.O_RDWR ] 0o600 in let interface = Xenmmap.mmap fd Xenmmap.RDWR Xenmmap.SHARED (Xenmmap.getpagesize()) 0 in -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |