This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [ PATCH 2.6.16-rc3-xen 1/3] sysfs: export Xen hypervisor att

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [ PATCH 2.6.16-rc3-xen 1/3] sysfs: export Xen hypervisor attributes to sysfs
From: "Mike D. Day" <ncmike@xxxxxxxxxx>
Date: Tue, 21 Feb 2006 09:36:35 -0500
Cc: Greg KH <greg@xxxxxxxxx>, Dave Hansen <haveblue@xxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>
Delivery-date: Tue, 21 Feb 2006 14:49:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5 (Macintosh/20051201)
This series of patches is a module that exports Xen Hypervisor attributes
to sysfs. The directory structure created is:
+---compiler +---properties

The xen_sysfs module has a tri-state Kconfig so it can be built-in or
loaded as a module.

The module is in three patches:
Patch 1 (this patch) is a Xen file that is used by all OS kernels that run
on Xen. This includes linux, NetBSD, FreeBSD, Solaris, and others. Patch 1
adds #defined constants so that linux users of this file can avoid typedefs.
Patch 2 (follows) contains the Kconfig changes necessary to add this module
to the kernel build. Patch 3 (follows) contains the source for the xen_sysfs module itself.
# HG changeset patch
# User mdday@xxxxxxxxxxxxxxxxxxxx
# Node ID d296aaf07bcb4141c6dc2a1bfa7d183f919c2167
# Parent  a05e56904e7e5e86aae5a2e022621caaf7b3a6f5
define constants for array sizes. Allows linux users of this file to avoid #typedefs. Existing typedefs work as before.
signed-off-by: Mike D. Day <ncmike@xxxxxxxxxx>

diff -r a05e56904e7e -r d296aaf07bcb xen/include/public/version.h
--- a/xen/include/public/version.h      Mon Feb 20 23:01:50 2006 +0000
+++ b/xen/include/public/version.h      Tue Feb 21 08:11:03 2006 -0500
@@ -1,8 +1,8 @@
* version.h
- * + *
* Xen version, type, and compile information.
- * + *
* Copyright (c) 2005, Nguyen Anh Quynh <aquynh@xxxxxxxxx>
* Copyright (c) 2005, Keir Fraser <keir@xxxxxxxxxxxxx>
@@ -17,6 +17,7 @@

/* arg == xen_extraversion_t. */
#define XENVER_extraversion 1
typedef char xen_extraversion_t[16];

/* arg == xen_compile_info_t. */
@@ -29,9 +30,11 @@ typedef struct xen_compile_info {
} xen_compile_info_t;

#define XENVER_capabilities 3
typedef char xen_capabilities_info_t[1024];

#define XENVER_changeset 4
typedef char xen_changeset_info_t[64];

#define XENVER_platform_parameters 5

Xen-devel mailing list