Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen Provide the sysctl(7) interface to the ball...



details:   https://anonhg.NetBSD.org/src/rev/c83d240bd62d
branches:  trunk
changeset: 756192:c83d240bd62d
user:      cherry <cherry%NetBSD.org@localhost>
date:      Thu Jul 08 14:51:14 2010 +0000

description:
Provide the sysctl(7) interface to the balloon driver only to dom0

diffstat:

 sys/arch/xen/xen/balloon.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 3d8f5f6d99cb -r c83d240bd62d sys/arch/xen/xen/balloon.c
--- a/sys/arch/xen/xen/balloon.c        Thu Jul 08 14:45:08 2010 +0000
+++ b/sys/arch/xen/xen/balloon.c        Thu Jul 08 14:51:14 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: balloon.c,v 1.2 2010/07/08 14:19:53 cherry Exp $ */
+/* $NetBSD: balloon.c,v 1.3 2010/07/08 14:51:14 cherry Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.2 2010/07/08 14:19:53 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: balloon.c,v 1.3 2010/07/08 14:51:14 cherry Exp $");
 
 #include <sys/inttypes.h>
 #include <sys/param.h>
@@ -755,6 +755,7 @@
 
 }
 
+#if DOM0OPS
 
 /* 
  * sysctl(9) stuff 
@@ -886,3 +887,5 @@
            sysctl_kern_xen_balloon, 0, &sysctl_target, 0,
            CTL_CREATE, CTL_EOL);
 }
+
+#endif /* DOM0OPS */



Home | Main Index | Thread Index | Old Index